Offset 1, 19 lines modified | Offset 1, 19 lines modified | ||
1 | ·e2c93e730214a4434d04c9fd68ef0624·69028060·debug·optional·cargo-dbgsym_1.82.0+dfsg1-2_arm64.deb | 1 | ·e2c93e730214a4434d04c9fd68ef0624·69028060·debug·optional·cargo-dbgsym_1.82.0+dfsg1-2_arm64.deb |
2 | · | 2 | ·eb9aaa52d6ffe5a8c5e6dab60a8799cb·4240372·doc·optional·cargo-doc_1.82.0+dfsg1-2_all.deb |
3 | ·4ba8dfa6caa20be61cdf646714452fa8·5303612·devel·optional·cargo_1.82.0+dfsg1-2_arm64.deb | 3 | ·4ba8dfa6caa20be61cdf646714452fa8·5303612·devel·optional·cargo_1.82.0+dfsg1-2_arm64.deb |
4 | ·bc3b59505f92d80fd8845db8a21ed495·263704548·debug·optional·libstd-rust-1.82-dbgsym_1.82.0+dfsg1-2_arm64.deb | 4 | ·bc3b59505f92d80fd8845db8a21ed495·263704548·debug·optional·libstd-rust-1.82-dbgsym_1.82.0+dfsg1-2_arm64.deb |
5 | ·40d32b84f74089743e55c799046ff4aa·18622856·libs·optional·libstd-rust-1.82_1.82.0+dfsg1-2_arm64.deb | 5 | ·40d32b84f74089743e55c799046ff4aa·18622856·libs·optional·libstd-rust-1.82_1.82.0+dfsg1-2_arm64.deb |
6 | ·6734d1a3b7d31c36d0dfbec7d99ffd2b·120214604·libdevel·optional·libstd-rust-dev-wasm32_1.82.0+dfsg1-2_all.deb | 6 | ·6734d1a3b7d31c36d0dfbec7d99ffd2b·120214604·libdevel·optional·libstd-rust-dev-wasm32_1.82.0+dfsg1-2_all.deb |
7 | ·ac727d61c48602905632c3af4788f78c·37028000·libdevel·optional·libstd-rust-dev_1.82.0+dfsg1-2_arm64.deb | 7 | ·ac727d61c48602905632c3af4788f78c·37028000·libdevel·optional·libstd-rust-dev_1.82.0+dfsg1-2_arm64.deb |
8 | ·e7345741de5fc570762b6b66bc2933c8·232712·devel·optional·rust-all_1.82.0+dfsg1-2_all.deb | 8 | ·e7345741de5fc570762b6b66bc2933c8·232712·devel·optional·rust-all_1.82.0+dfsg1-2_all.deb |
9 | ·1211b946d9d0f3709c8088ef5d36fe08·57271308·debug·optional·rust-clippy-dbgsym_1.82.0+dfsg1-2_arm64.deb | 9 | ·1211b946d9d0f3709c8088ef5d36fe08·57271308·debug·optional·rust-clippy-dbgsym_1.82.0+dfsg1-2_arm64.deb |
10 | ·0031fb451853eb70ebcd19e6477fbb77·2665800·devel·optional·rust-clippy_1.82.0+dfsg1-2_arm64.deb | 10 | ·0031fb451853eb70ebcd19e6477fbb77·2665800·devel·optional·rust-clippy_1.82.0+dfsg1-2_arm64.deb |
11 | · | 11 | ·c4c4f6ea6cfc1bba267e242680c31ae4·21916804·doc·optional·rust-doc_1.82.0+dfsg1-2_all.deb |
12 | ·e9fbd2dd8ed25d8d0e98061ca0a251a9·238392·devel·optional·rust-gdb_1.82.0+dfsg1-2_all.deb | 12 | ·e9fbd2dd8ed25d8d0e98061ca0a251a9·238392·devel·optional·rust-gdb_1.82.0+dfsg1-2_all.deb |
13 | ·08a0d6b6b0ea1462e36bb46b7fb54017·239156·devel·optional·rust-lldb_1.82.0+dfsg1-2_all.deb | 13 | ·08a0d6b6b0ea1462e36bb46b7fb54017·239156·devel·optional·rust-lldb_1.82.0+dfsg1-2_all.deb |
14 | ·956e1a0c47922d302ee21b6289dc7136·1507612·devel·optional·rust-llvm_1.82.0+dfsg1-2_arm64.deb | 14 | ·956e1a0c47922d302ee21b6289dc7136·1507612·devel·optional·rust-llvm_1.82.0+dfsg1-2_arm64.deb |
15 | ·b2d49c87d65e95c6fa98c40abecadcd2·46099532·devel·optional·rust-src_1.82.0+dfsg1-2_all.deb | 15 | ·b2d49c87d65e95c6fa98c40abecadcd2·46099532·devel·optional·rust-src_1.82.0+dfsg1-2_all.deb |
16 | ·c6e678bc03d296703ffb7f6ce045ac82·34216732·debug·optional·rustc-dbgsym_1.82.0+dfsg1-2_arm64.deb | 16 | ·c6e678bc03d296703ffb7f6ce045ac82·34216732·debug·optional·rustc-dbgsym_1.82.0+dfsg1-2_arm64.deb |
17 | ·082618ca2c00c76955fd4818f2df965c·3220852·devel·optional·rustc_1.82.0+dfsg1-2_arm64.deb | 17 | ·082618ca2c00c76955fd4818f2df965c·3220852·devel·optional·rustc_1.82.0+dfsg1-2_arm64.deb |
18 | ·a0a3aed4935233ead7705aaeccfa046e·22049944·debug·optional·rustfmt-dbgsym_1.82.0+dfsg1-2_arm64.deb | 18 | ·a0a3aed4935233ead7705aaeccfa046e·22049944·debug·optional·rustfmt-dbgsym_1.82.0+dfsg1-2_arm64.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-10-29·12:18:35.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-10-29·12:18:35.000000·debian-binary |
2 | -rw-r--r--···0········0········0····737 | 2 | -rw-r--r--···0········0········0····73776·2024-10-29·12:18:35.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··4166 | 3 | -rw-r--r--···0········0········0··4166404·2024-10-29·12:18:35.000000·data.tar.xz |
Offset 2708, 15 lines modified | Offset 2708, 15 lines modified | ||
2708 | -rw-r--r--···0·root·········(0)·root·········(0)····35265·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/crates_io/struct.Registry.html | 2708 | -rw-r--r--···0·root·········(0)·root·········(0)····35265·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/crates_io/struct.Registry.html |
2709 | -rw-r--r--···0·root·········(0)·root·········(0)····22608·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/crates_io/struct.TotalCrates.html | 2709 | -rw-r--r--···0·root·········(0)·root·········(0)····22608·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/crates_io/struct.TotalCrates.html |
2710 | -rw-r--r--···0·root·········(0)·root·········(0)····25002·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/crates_io/struct.User.html | 2710 | -rw-r--r--···0·root·········(0)·root·········(0)····25002·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/crates_io/struct.User.html |
2711 | -rw-r--r--···0·root·········(0)·root·········(0)····22562·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/crates_io/struct.Users.html | 2711 | -rw-r--r--···0·root·········(0)·root·········(0)····22562·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/crates_io/struct.Users.html |
2712 | -rw-r--r--···0·root·········(0)·root·········(0)····21562·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/crates_io/struct.Warnings.html | 2712 | -rw-r--r--···0·root·········(0)·root·········(0)····21562·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/crates_io/struct.Warnings.html |
2713 | -rw-r--r--···0·root·········(0)·root·········(0)·····4900·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/crates_io/type.Result.html | 2713 | -rw-r--r--···0·root·········(0)·root·········(0)·····4900·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/crates_io/type.Result.html |
2714 | -rw-r--r--···0·root·········(0)·root·········(0)·····2991·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/help.html | 2714 | -rw-r--r--···0·root·········(0)·root·········(0)·····2991·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/help.html |
2715 | -rw-r--r--···0·root·········(0)·root·········(0)·····32 | 2715 | -rw-r--r--···0·root·········(0)·root·········(0)·····3266·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/index.html |
2716 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/mdman/ | 2716 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/mdman/ |
2717 | -rw-r--r--···0·root·········(0)·root·········(0)·····5174·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/mdman/all.html | 2717 | -rw-r--r--···0·root·········(0)·root·········(0)·····5174·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/mdman/all.html |
2718 | -rw-r--r--···0·root·········(0)·root·········(0)····28288·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/mdman/enum.Format.html | 2718 | -rw-r--r--···0·root·········(0)·root·········(0)····28288·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/mdman/enum.Format.html |
2719 | -rw-r--r--···0·root·········(0)·root·········(0)·····4164·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/mdman/fn.convert.html | 2719 | -rw-r--r--···0·root·········(0)·root·········(0)·····4164·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/mdman/fn.convert.html |
2720 | -rw-r--r--···0·root·········(0)·root·········(0)·····3392·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/mdman/fn.extract_section.html | 2720 | -rw-r--r--···0·root·········(0)·root·········(0)·····3392·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/mdman/fn.extract_section.html |
2721 | -rw-r--r--···0·root·········(0)·root·········(0)·····3199·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/mdman/fn.join_url.html | 2721 | -rw-r--r--···0·root·········(0)·root·········(0)·····3199·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/mdman/fn.join_url.html |
2722 | -rw-r--r--···0·root·········(0)·root·········(0)·····4036·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/mdman/fn.md_parser.html | 2722 | -rw-r--r--···0·root·········(0)·root·········(0)·····4036·2024-10-29·12:18:35.000000·./usr/share/doc/cargo/reference/mdman/fn.md_parser.html |
Offset 1, 2 lines modified | Offset 1, 2 lines modified | ||
1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="List·of·crates"><title>Index·of·crates</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="./static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="./static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="./static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="./"·data-static-root-path="./static.files/"·data-current-crate=" | 1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="List·of·crates"><title>Index·of·crates</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="./static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="./static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="./static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="./"·data-static-root-path="./static.files/"·data-current-crate="rustfix"·data-themes=""·data-resource-suffix=""·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="./static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="./static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="./static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="./static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="./static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·mod·sys"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="./index.html"><img·class="rust-logo"·src="./static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="./index.html"><img·class="rust-logo"·src="./static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="./index.html">Rustdoc</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec·2024-10-15)·(built·from·a·source·tarball)</div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><h1>List·of·all·crates</h1><ul·class="all-items"><li><a·href="cargo/index.html">cargo</a></li><li><a·href="cargo_credential/index.html">cargo_credential</a></li><li><a·href="cargo_platform/index.html">cargo_platform</a></li><li><a·href="cargo_test_macro/index.html">cargo_test_macro</a></li><li><a·href="cargo_test_support/index.html">cargo_test_support</a></li><li><a·href="cargo_util/index.html">cargo_util</a></li><li><a·href="cargo_util_schemas/index.html">cargo_util_schemas</a></li><li><a·href="crates_io/index.html">crates_io</a></li><li><a·href="mdman/index.html">mdman</a></li><li><a·href="rustfix/index.html">rustfix</a></li></ul></section></div></main></body></html> |
2 | <!--{"start":25 | 2 | <!--{"start":2565,"fragment_lengths":[45,67,63,67,71,55,71,53,45,49]}--> |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-10-29·12:18:35.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-10-29·12:18:35.000000·debian-binary |
2 | -rw-r--r--···0········0········0···9396 | 2 | -rw-r--r--···0········0········0···939644·2024-10-29·12:18:35.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0·209 | 3 | -rw-r--r--···0········0········0·20976968·2024-10-29·12:18:35.000000·data.tar.xz |
Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
1 | Package:·rust-doc | 1 | Package:·rust-doc |
2 | Source:·rustc | 2 | Source:·rustc |
3 | Version:·1.82.0+dfsg1-2 | 3 | Version:·1.82.0+dfsg1-2 |
4 | Architecture:·all | 4 | 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:·62158 | 6 | Installed-Size:·621589 |
7 | Depends:·libjs-jquery,·libjs-highlight.js,·libjs-mathjax,·fonts-open-sans,·fonts-font-awesome | 7 | Depends:·libjs-jquery,·libjs-highlight.js,·libjs-mathjax,·fonts-open-sans,·fonts-font-awesome |
8 | Recommends:·cargo-doc | 8 | Recommends:·cargo-doc |
9 | Section:·doc | 9 | Section:·doc |
10 | Priority:·optional | 10 | Priority:·optional |
11 | Homepage:·http://www.rust-lang.org/ | 11 | Homepage:·http://www.rust-lang.org/ |
12 | Description:·Rust·systems·programming·language·-·Documentation | 12 | Description:·Rust·systems·programming·language·-·Documentation |
13 | ·Rust·is·a·curly-brace,·block-structured·expression·language.··It | 13 | ·Rust·is·a·curly-brace,·block-structured·expression·language.··It |
Offset 39710, 48 lines modified | Offset 39710, 48 lines modified | ||
39710 | -rw-r--r--···0·root·········(0)·root·········(0)·····4303·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/not_found.html | 39710 | -rw-r--r--···0·root·········(0)·root·········(0)·····4303·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/not_found.html |
39711 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/ | 39711 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/ |
39712 | -rw-r--r--···0·root·········(0)·root·········(0)·····4384·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/all.html | 39712 | -rw-r--r--···0·root·········(0)·root·········(0)·····4384·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/all.html |
39713 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/diagnostic/ | 39713 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/diagnostic/ |
39714 | -rw-r--r--···0·root·········(0)·root·········(0)······400·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/diagnostic/enum.Level.html | 39714 | -rw-r--r--···0·root·········(0)·root·········(0)······400·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/diagnostic/enum.Level.html |
39715 | -rw-r--r--···0·root·········(0)·root·········(0)······428·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/diagnostic/struct.Diagnostic.html | 39715 | -rw-r--r--···0·root·········(0)·root·········(0)······428·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/diagnostic/struct.Diagnostic.html |
39716 | -rw-r--r--···0·root·········(0)·root·········(0)······420·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/diagnostic/trait.MultiSpan.html | 39716 | -rw-r--r--···0·root·········(0)·root·········(0)······420·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/diagnostic/trait.MultiSpan.html |
39717 | -rw-r--r--···0·root·········(0)·root·········(0)····31 | 39717 | -rw-r--r--···0·root·········(0)·root·········(0)····31501·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/enum.Delimiter.html |
39718 | -rw-r--r--···0·root·········(0)·root·········(0)····27 | 39718 | -rw-r--r--···0·root·········(0)·root·········(0)····27737·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/enum.Level.html |
39719 | -rw-r--r--···0·root·········(0)·root·········(0)····308 | 39719 | -rw-r--r--···0·root·········(0)·root·········(0)····31083·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/enum.Spacing.html |
39720 | -rw-r--r--···0·root·········(0)·root·········(0)····46 | 39720 | -rw-r--r--···0·root·········(0)·root·········(0)····46489·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/enum.TokenTree.html |
39721 | -rw-r--r--···0·root·········(0)·root·········(0)·····4 | 39721 | -rw-r--r--···0·root·········(0)·root·········(0)·····4306·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/fn.is_available.html |
39722 | -rw-r--r--···0·root·········(0)·root·········(0)·····4103·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/fn.quote.html | 39722 | -rw-r--r--···0·root·········(0)·root·········(0)·····4103·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/fn.quote.html |
39723 | -rw-r--r--···0·root·········(0)·root·········(0)·····4079·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/fn.quote_span.html | 39723 | -rw-r--r--···0·root·········(0)·root·········(0)·····4079·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/fn.quote_span.html |
39724 | -rw-r--r--···0·root·········(0)·root·········(0)····11564·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/index.html | 39724 | -rw-r--r--···0·root·········(0)·root·········(0)····11564·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/index.html |
39725 | -rw-r--r--···0·root·········(0)·root·········(0)······336·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/macro.quote!.html | 39725 | -rw-r--r--···0·root·········(0)·root·········(0)······336·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/macro.quote!.html |
39726 | -rw-r--r--···0·root·········(0)·root·········(0)·····4396·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/macro.quote.html | 39726 | -rw-r--r--···0·root·········(0)·root·········(0)·····4396·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/macro.quote.html |
39727 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/quote/ | 39727 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/quote/ |
39728 | -rw-r--r--···0·root·········(0)·root·········(0)······392·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/quote/fn.quote.html | 39728 | -rw-r--r--···0·root·········(0)·root·········(0)······392·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/quote/fn.quote.html |
39729 | -rw-r--r--···0·root·········(0)·root·········(0)······412·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/quote/fn.quote_span.html | 39729 | -rw-r--r--···0·root·········(0)·root·········(0)······412·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/quote/fn.quote_span.html |
39730 | -rw-r--r--···0·root·········(0)·root·········(0)······328·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/sidebar-items1.82.0.js | 39730 | -rw-r--r--···0·root·········(0)·root·········(0)······328·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/sidebar-items1.82.0.js |
39731 | -rw-r--r--···0·root·········(0)·root·········(0)····4 | 39731 | -rw-r--r--···0·root·········(0)·root·········(0)····45018·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/struct.Diagnostic.html |
39732 | -rw-r--r--···0·root·········(0)·root·········(0)····26 | 39732 | -rw-r--r--···0·root·········(0)·root·········(0)····26359·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/struct.ExpandError.html |
39733 | -rw-r--r--···0·root·········(0)·root·········(0)····3 | 39733 | -rw-r--r--···0·root·········(0)·root·········(0)····36043·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/struct.Group.html |
39734 | -rw-r--r--···0·root·········(0)·root·········(0)····34 | 39734 | -rw-r--r--···0·root·········(0)·root·········(0)····34292·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/struct.Ident.html |
39735 | -rw-r--r--···0·root·········(0)·root·········(0)····264 | 39735 | -rw-r--r--···0·root·········(0)·root·········(0)····26490·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/struct.LexError.html |
39736 | -rw-r--r--···0·root·········(0)·root·········(0)····7 | 39736 | -rw-r--r--···0·root·········(0)·root·········(0)····77530·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/struct.Literal.html |
39737 | -rw-r--r--···0·root·········(0)·root·········(0)····3 | 39737 | -rw-r--r--···0·root·········(0)·root·········(0)····39060·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/struct.Punct.html |
39738 | -rw-r--r--···0·root·········(0)·root·········(0)····30 | 39738 | -rw-r--r--···0·root·········(0)·root·········(0)····30441·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/struct.SourceFile.html |
39739 | -rw-r--r--···0·root·········(0)·root·········(0)····4 | 39739 | -rw-r--r--···0·root·········(0)·root·········(0)····46190·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/struct.Span.html |
39740 | -rw-r--r--···0·root·········(0)·root·········(0)····53 | 39740 | -rw-r--r--···0·root·········(0)·root·········(0)····53434·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/struct.TokenStream.html |
39741 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/token_stream/ | 39741 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/token_stream/ |
39742 | -rw-r--r--···0·root·········(0)·root·········(0)·····4267·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/token_stream/index.html | 39742 | -rw-r--r--···0·root·········(0)·root·········(0)·····4267·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/token_stream/index.html |
39743 | -rw-r--r--···0·root·········(0)·root·········(0)·······47·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/token_stream/sidebar-items1.82.0.js | 39743 | -rw-r--r--···0·root·········(0)·root·········(0)·······47·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/token_stream/sidebar-items1.82.0.js |
39744 | -rw-r--r--···0·root·········(0)·root·········(0)···13 | 39744 | -rw-r--r--···0·root·········(0)·root·········(0)···134843·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/token_stream/struct.IntoIter.html |
39745 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/tracked_env/ | 39745 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/tracked_env/ |
39746 | -rw-r--r--···0·root·········(0)·root·········(0)·····5 | 39746 | -rw-r--r--···0·root·········(0)·root·········(0)·····5372·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/tracked_env/fn.var.html |
39747 | -rw-r--r--···0·root·········(0)·root·········(0)·····4604·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/tracked_env/index.html | 39747 | -rw-r--r--···0·root·········(0)·root·········(0)·····4604·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/tracked_env/index.html |
39748 | -rw-r--r--···0·root·········(0)·root·········(0)·······38·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/tracked_env/sidebar-items1.82.0.js | 39748 | -rw-r--r--···0·root·········(0)·root·········(0)·······38·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/tracked_env/sidebar-items1.82.0.js |
39749 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/tracked_path/ | 39749 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/tracked_path/ |
39750 | -rw-r--r--···0·root·········(0)·root·········(0)·····40 | 39750 | -rw-r--r--···0·root·········(0)·root·········(0)·····4059·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/tracked_path/fn.path.html |
39751 | -rw-r--r--···0·root·········(0)·root·········(0)·····4207·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/tracked_path/index.html | 39751 | -rw-r--r--···0·root·········(0)·root·········(0)·····4207·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/tracked_path/index.html |
39752 | -rw-r--r--···0·root·········(0)·root·········(0)·······39·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/tracked_path/sidebar-items1.82.0.js | 39752 | -rw-r--r--···0·root·········(0)·root·········(0)·······39·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/tracked_path/sidebar-items1.82.0.js |
39753 | -rw-r--r--···0·root·········(0)·root·········(0)·····9221·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/trait.MultiSpan.html | 39753 | -rw-r--r--···0·root·········(0)·root·········(0)·····9221·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/proc_macro/trait.MultiSpan.html |
39754 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/reference/ | 39754 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/reference/ |
39755 | -rw-r--r--···0·root·········(0)·root·········(0)·······72·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/reference/.nojekyll | 39755 | -rw-r--r--···0·root·········(0)·root·········(0)·······72·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/reference/.nojekyll |
39756 | -rw-r--r--···0·root·········(0)·root·········(0)····29983·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/reference/abi.html | 39756 | -rw-r--r--···0·root·········(0)·root·········(0)····29983·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/reference/abi.html |
39757 | -rw-r--r--···0·root·········(0)·root·········(0)····24933·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/reference/appendices.html | 39757 | -rw-r--r--···0·root·········(0)·root·········(0)····24933·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/reference/appendices.html |
Offset 44292, 15 lines modified | Offset 44292, 15 lines modified | ||
44292 | -rw-r--r--···0·root·········(0)·root·········(0)·····1643·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/borrow/trait.BorrowMut.js | 44292 | -rw-r--r--···0·root·········(0)·root·········(0)·····1643·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/borrow/trait.BorrowMut.js |
44293 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/clone/ | 44293 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/clone/ |
44294 | -rw-r--r--···0·root·········(0)·root·········(0)····46887·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/clone/trait.Clone.js | 44294 | -rw-r--r--···0·root·········(0)·root·········(0)····46887·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/clone/trait.Clone.js |
44295 | -rw-r--r--···0·root·········(0)·root·········(0)······759·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/clone/trait.CloneToUninit.js | 44295 | -rw-r--r--···0·root·········(0)·root·········(0)······759·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/clone/trait.CloneToUninit.js |
44296 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/cmp/ | 44296 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/cmp/ |
44297 | -rw-r--r--···0·root·········(0)·root·········(0)····20136·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.Eq.js | 44297 | -rw-r--r--···0·root·········(0)·root·········(0)····20136·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.Eq.js |
44298 | -rw-r--r--···0·root·········(0)·root·········(0)·····8859·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.Ord.js | 44298 | -rw-r--r--···0·root·········(0)·root·········(0)·····8859·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.Ord.js |
44299 | -rw-r--r--···0·root·········(0)·root·········(0)····62 | 44299 | -rw-r--r--···0·root·········(0)·root·········(0)····62847·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.PartialEq.js |
44300 | -rw-r--r--···0·root·········(0)·root·········(0)····29371·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.PartialOrd.js | 44300 | -rw-r--r--···0·root·········(0)·root·········(0)····29371·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.PartialOrd.js |
44301 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/convert/ | 44301 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/convert/ |
44302 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/convert/num/ | 44302 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/convert/num/ |
44303 | -rw-r--r--···0·root·········(0)·root·········(0)······292·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/convert/num/trait.FloatToInt.js | 44303 | -rw-r--r--···0·root·········(0)·root·········(0)······292·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/convert/num/trait.FloatToInt.js |
44304 | -rw-r--r--···0·root·········(0)·root·········(0)·····2208·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/convert/trait.AsMut.js | 44304 | -rw-r--r--···0·root·········(0)·root·········(0)·····2208·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/convert/trait.AsMut.js |
44305 | -rw-r--r--···0·root·········(0)·root·········(0)····12601·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/convert/trait.AsRef.js | 44305 | -rw-r--r--···0·root·········(0)·root·········(0)····12601·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/convert/trait.AsRef.js |
44306 | -rw-r--r--···0·root·········(0)·root·········(0)····91477·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/convert/trait.From.js | 44306 | -rw-r--r--···0·root·········(0)·root·········(0)····91477·2024-10-29·12:18:35.000000·./usr/share/doc/rust-doc/html/trait.impl/core/convert/trait.From.js |
Offset 16, 21 lines modified | Offset 16, 21 lines modified | ||
16 | <p>Note:·rustc·currently·can·ignore·the·grouping·of·tokens·delimited·by·<code>None</code>·in·the·output | 16 | <p>Note:·rustc·currently·can·ignore·the·grouping·of·tokens·delimited·by·<code>None</code>·in·the·output |
17 | of·a·proc_macro.·Only·<code>None</code>-delimited·groups·created·by·a·macro_rules·macro·in·the·input | 17 | of·a·proc_macro.·Only·<code>None</code>-delimited·groups·created·by·a·macro_rules·macro·in·the·input |
18 | of·a·proc_macro·macro·are·preserved,·and·only·in·very·specific·circumstances. | 18 | of·a·proc_macro·macro·are·preserved,·and·only·in·very·specific·circumstances. |
19 | Any·<code>None</code>-delimited·groups·(re)created·by·a·proc_macro·will·therefore·not·preserve | 19 | Any·<code>None</code>-delimited·groups·(re)created·by·a·proc_macro·will·therefore·not·preserve |
20 | operator·priorities·as·indicated·above.·The·other·<code>Delimiter</code>·variants·should·be·used | 20 | operator·priorities·as·indicated·above.·The·other·<code>Delimiter</code>·variants·should·be·used |
21 | instead·in·this·context.·This·is·a·rustc·bug.·For·details,·see | 21 | instead·in·this·context.·This·is·a·rustc·bug.·For·details,·see |
22 | <a·href="https://github.com/rust-lang/rust/issues/67062">rust-lang/rust#67062</a>.</p> | 22 | <a·href="https://github.com/rust-lang/rust/issues/67062">rust-lang/rust#67062</a>.</p> |
23 | </div></div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#804">source</a></span><a·href="#impl-Clone-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#804">source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&self)·->·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&mut·self,·source:·&Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#804">source</a></span><a·href="#impl-Debug-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#804">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#804">source</a></span><a·href="#impl-PartialEq-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#804">source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&self,·other:·&<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a>)·->·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class=" | 23 | </div></div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#804">source</a></span><a·href="#impl-Clone-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#804">source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&self)·->·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&mut·self,·source:·&Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#804">source</a></span><a·href="#impl-Debug-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#804">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#804">source</a></span><a·href="#impl-PartialEq-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#804">source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&self,·other:·&<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a>)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·569,·SHA:·0f72f4fd60d70f57b153a987911cb866503d5194076deca85bece549226fa97f·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient, |
24 | and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#804">source</a></span><a·href="#impl-Copy-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-Eq-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#804">source</a></span><a·href="#impl-Eq-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-StructuralPartialEq-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#804">source</a></span><a·href="#impl-StructuralPartialEq-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Delimiter"·class="impl"><a·href="#impl-Freeze-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-RefUnwindSafe-for-Delimiter"·class="impl"><a·href="#impl-RefUnwindSafe-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-Send-for-Delimiter"·class="impl"><a·href="#impl-Send-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-Sync-for-Delimiter"·class="impl"><a·href="#impl-Sync-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-Unpin-for-Delimiter"·class="impl"><a·href="#impl-Unpin-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-UnwindSafe-for-Delimiter"·class="impl"><a·href="#impl-UnwindSafe-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where | 24 | and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#804">source</a></span><a·href="#impl-Copy-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-Eq-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#804">source</a></span><a·href="#impl-Eq-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-StructuralPartialEq-for-Delimiter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#804">source</a></span><a·href="#impl-StructuralPartialEq-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Delimiter"·class="impl"><a·href="#impl-Freeze-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-RefUnwindSafe-for-Delimiter"·class="impl"><a·href="#impl-RefUnwindSafe-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-Send-for-Delimiter"·class="impl"><a·href="#impl-Send-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-Sync-for-Delimiter"·class="impl"><a·href="#impl-Sync-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-Unpin-for-Delimiter"·class="impl"><a·href="#impl-Unpin-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section><section·id="impl-UnwindSafe-for-Delimiter"·class="impl"><a·href="#impl-UnwindSafe-for-Delimiter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.Delimiter.html"·title="enum·proc_macro::Delimiter">Delimiter</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where |
25 | ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·for·T<div·class="where">where | 25 | ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·for·T<div·class="where">where |
26 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·for·T<div·class="where">where | 26 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·for·T<div·class="where">where |
27 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where | 27 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where |
28 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p> | 28 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·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<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where | 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<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where |
30 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p> | 30 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·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·of | 31 | <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><T>·for·U</code>·chooses·to·do.</p> | 32 | <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·U</code>·chooses·to·do.</p> |
33 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where | 33 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where |
34 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where | 34 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where |
35 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where | 35 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where |
36 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html> | 36 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html> |
Offset 6, 18 lines modified | Offset 6, 18 lines modified | ||
6 | }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·enum·representing·a·diagnostic·level.</p> | 6 | }</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·enum·representing·a·diagnostic·level.</p> |
7 | </div></details><h2·id="variants"·class="variants·section-header">Variants·(Non-exhaustive)<a·href="#variants"·class="anchor">§</a></h2><details·class="toggle·non-exhaustive"><summary·class="hideme"><span>This·enum·is·marked·as·non-exhaustive</span></summary><div·class="docblock">Non-exhaustive·enums·could·have·additional·variants·added·in·future.·Therefore,·when·matching·against·variants·of·non-exhaustive·enums,·an·extra·wildcard·arm·must·be·added·to·account·for·any·future·variants.</div></details><div·class="variants"><section·id="variant.Error"·class="variant"><a·href="#variant.Error"·class="anchor">§</a><h3·class="code-header">Error</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><div·class="docblock"><p>An·error.</p> | 7 | </div></details><h2·id="variants"·class="variants·section-header">Variants·(Non-exhaustive)<a·href="#variants"·class="anchor">§</a></h2><details·class="toggle·non-exhaustive"><summary·class="hideme"><span>This·enum·is·marked·as·non-exhaustive</span></summary><div·class="docblock">Non-exhaustive·enums·could·have·additional·variants·added·in·future.·Therefore,·when·matching·against·variants·of·non-exhaustive·enums,·an·extra·wildcard·arm·must·be·added·to·account·for·any·future·variants.</div></details><div·class="variants"><section·id="variant.Error"·class="variant"><a·href="#variant.Error"·class="anchor">§</a><h3·class="code-header">Error</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><div·class="docblock"><p>An·error.</p> |
8 | </div><section·id="variant.Warning"·class="variant"><a·href="#variant.Warning"·class="anchor">§</a><h3·class="code-header">Warning</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><div·class="docblock"><p>A·warning.</p> | 8 | </div><section·id="variant.Warning"·class="variant"><a·href="#variant.Warning"·class="anchor">§</a><h3·class="code-header">Warning</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><div·class="docblock"><p>A·warning.</p> |
9 | </div><section·id="variant.Note"·class="variant"><a·href="#variant.Note"·class="anchor">§</a><h3·class="code-header">Note</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><div·class="docblock"><p>A·note.</p> | 9 | </div><section·id="variant.Note"·class="variant"><a·href="#variant.Note"·class="anchor">§</a><h3·class="code-header">Note</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><div·class="docblock"><p>A·note.</p> |
10 | </div><section·id="variant.Help"·class="variant"><a·href="#variant.Help"·class="anchor">§</a><h3·class="code-header">Help</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><div·class="docblock"><p>A·help·message.</p> | 10 | </div><section·id="variant.Help"·class="variant"><a·href="#variant.Help"·class="anchor">§</a><h3·class="code-header">Help</h3></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><div·class="docblock"><p>A·help·message.</p> |
11 | </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Level"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#5">source</a><a·href="#impl-Clone-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#5">source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&self)·->·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&mut·self,·source:·&Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Level"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#5">source</a><a·href="#impl-Debug-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#5">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><section·id="impl-Copy-for-Level"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#5">source</a><a·href="#impl-Copy-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Level"·class="impl"><a·href="#impl-Freeze-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section><section·id="impl-RefUnwindSafe-for-Level"·class="impl"><a·href="#impl-RefUnwindSafe-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section><section·id="impl-Send-for-Level"·class="impl"><a·href="#impl-Send-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section><section·id="impl-Sync-for-Level"·class="impl"><a·href="#impl-Sync-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section><section·id="impl-Unpin-for-Level"·class="impl"><a·href="#impl-Unpin-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section><section·id="impl-UnwindSafe-for-Level"·class="impl"><a·href="#impl-UnwindSafe-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where | 11 | </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Level"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#5">source</a><a·href="#impl-Clone-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#5">source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&self)·->·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&mut·self,·source:·&Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Level"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#5">source</a><a·href="#impl-Debug-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#5">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><section·id="impl-Copy-for-Level"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#5">source</a><a·href="#impl-Copy-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Level"·class="impl"><a·href="#impl-Freeze-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section><section·id="impl-RefUnwindSafe-for-Level"·class="impl"><a·href="#impl-RefUnwindSafe-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section><section·id="impl-Send-for-Level"·class="impl"><a·href="#impl-Send-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section><section·id="impl-Sync-for-Level"·class="impl"><a·href="#impl-Sync-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section><section·id="impl-Unpin-for-Level"·class="impl"><a·href="#impl-Unpin-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section><section·id="impl-UnwindSafe-for-Level"·class="impl"><a·href="#impl-UnwindSafe-for-Level"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where |
12 | ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·for·T<div·class="where">where | 12 | ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·for·T<div·class="where">where |
13 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·for·T<div·class="where">where | 13 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·for·T<div·class="where">where |
14 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where | 14 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where |
15 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p> | 15 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·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<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where | 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<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where |
17 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p> | 17 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·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·of | 18 | <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><T>·for·U</code>·chooses·to·do.</p> | 19 | <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·U</code>·chooses·to·do.</p> |
20 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where | 20 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where |
21 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where | 21 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where |
22 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where | 22 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where |
23 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html> | 23 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html> |
Offset 15, 21 lines modified | Offset 15, 21 lines modified | ||
15 | </ul> | 15 | </ul> |
16 | <p>This·list·may·be·extended·in·the·future·to·enable·more·token·combinations.</p> | 16 | <p>This·list·may·be·extended·in·the·future·to·enable·more·token·combinations.</p> |
17 | </div><section·id="variant.Alone"·class="variant"><a·href="#variant.Alone"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.29.0">1.29.0</span><h3·class="code-header">Alone</h3></section><div·class="docblock"><p>A·<code>Punct</code>·token·cannot·join·with·the·following·token·to·form·a·multi-character·operator.</p> | 17 | </div><section·id="variant.Alone"·class="variant"><a·href="#variant.Alone"·class="anchor">§</a><span·class="since·rightside"·title="Stable·since·Rust·version·1.29.0">1.29.0</span><h3·class="code-header">Alone</h3></section><div·class="docblock"><p>A·<code>Punct</code>·token·cannot·join·with·the·following·token·to·form·a·multi-character·operator.</p> |
18 | <p><code>Alone</code>·punctuation·tokens·can·be·followed·by·any·other·tokens.·In·token·streams·parsed | 18 | <p><code>Alone</code>·punctuation·tokens·can·be·followed·by·any·other·tokens.·In·token·streams·parsed |
19 | from·source·code,·the·compiler·will·set·spacing·to·<code>Alone</code>·in·all·cases·not·covered·by·the | 19 | from·source·code,·the·compiler·will·set·spacing·to·<code>Alone</code>·in·all·cases·not·covered·by·the |
20 | conditions·for·<code>Joint</code>·above.·E.g.·<code>+</code>·is·<code>Alone</code>·in·<code>+·=</code>,·<code>+ident</code>·and·<code>+()</code>.·In | 20 | conditions·for·<code>Joint</code>·above.·E.g.·<code>+</code>·is·<code>Alone</code>·in·<code>+·=</code>,·<code>+ident</code>·and·<code>+()</code>.·In |
21 | particular,·tokens·not·followed·by·anything·will·be·marked·as·<code>Alone</code>.</p> | 21 | particular,·tokens·not·followed·by·anything·will·be·marked·as·<code>Alone</code>.</p> |
22 | </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#960">source</a></span><a·href="#impl-Clone-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#960">source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&self)·->·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&mut·self,·source:·&Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#960">source</a></span><a·href="#impl-Debug-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#960">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#960">source</a></span><a·href="#impl-PartialEq-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#960">source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&self,·other:·&<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a>)·->·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class=" | 22 | </div></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#960">source</a></span><a·href="#impl-Clone-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#960">source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&self)·->·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&mut·self,·source:·&Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#960">source</a></span><a·href="#impl-Debug-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#960">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#960">source</a></span><a·href="#impl-PartialEq-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#960">source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&self,·other:·&<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a>)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·569,·SHA:·0f72f4fd60d70f57b153a987911cb866503d5194076deca85bece549226fa97f·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient, |
23 | and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#960">source</a></span><a·href="#impl-Copy-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-Eq-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#960">source</a></span><a·href="#impl-Eq-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-StructuralPartialEq-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#960">source</a></span><a·href="#impl-StructuralPartialEq-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Spacing"·class="impl"><a·href="#impl-Freeze-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-RefUnwindSafe-for-Spacing"·class="impl"><a·href="#impl-RefUnwindSafe-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-Send-for-Spacing"·class="impl"><a·href="#impl-Send-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-Sync-for-Spacing"·class="impl"><a·href="#impl-Sync-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-Unpin-for-Spacing"·class="impl"><a·href="#impl-Unpin-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-UnwindSafe-for-Spacing"·class="impl"><a·href="#impl-UnwindSafe-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where | 23 | and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Copy-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#960">source</a></span><a·href="#impl-Copy-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-Eq-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#960">source</a></span><a·href="#impl-Eq-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-StructuralPartialEq-for-Spacing"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#960">source</a></span><a·href="#impl-StructuralPartialEq-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.StructuralPartialEq.html"·title="trait·core::marker::StructuralPartialEq">StructuralPartialEq</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Spacing"·class="impl"><a·href="#impl-Freeze-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-RefUnwindSafe-for-Spacing"·class="impl"><a·href="#impl-RefUnwindSafe-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-Send-for-Spacing"·class="impl"><a·href="#impl-Send-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-Sync-for-Spacing"·class="impl"><a·href="#impl-Sync-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-Unpin-for-Spacing"·class="impl"><a·href="#impl-Unpin-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section><section·id="impl-UnwindSafe-for-Spacing"·class="impl"><a·href="#impl-UnwindSafe-for-Spacing"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where |
24 | ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·for·T<div·class="where">where | 24 | ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·for·T<div·class="where">where |
25 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·for·T<div·class="where">where | 25 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·for·T<div·class="where">where |
26 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where | 26 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where |
27 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p> | 27 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p> |
28 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where | 28 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where |
29 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p> | 29 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p> |
30 | <p>That·is,·this·conversion·is·whatever·the·implementation·of | 30 | <p>That·is,·this·conversion·is·whatever·the·implementation·of |
31 | <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·U</code>·chooses·to·do.</p> | 31 | <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·U</code>·chooses·to·do.</p> |
32 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where | 32 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where |
33 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where | 33 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where |
34 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where | 34 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where |
35 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html> | 35 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html> |
Offset 21, 23 lines modified | Offset 21, 23 lines modified | ||
21 | <p>Note:·the·exact·form·of·the·output·is·subject·to·change,·e.g.·there·might | 21 | <p>Note:·the·exact·form·of·the·output·is·subject·to·change,·e.g.·there·might |
22 | be·changes·in·the·whitespace·used·between·tokens.·Therefore,·you·should | 22 | be·changes·in·the·whitespace·used·between·tokens.·Therefore,·you·should |
23 | <em>not</em>·do·any·kind·of·simple·substring·matching·on·the·output·string·(as | 23 | <em>not</em>·do·any·kind·of·simple·substring·matching·on·the·output·string·(as |
24 | produced·by·<code>to_string</code>)·to·implement·a·proc·macro,·because·that·matching | 24 | produced·by·<code>to_string</code>)·to·implement·a·proc·macro,·because·that·matching |
25 | might·stop·working·if·such·changes·happen.·Instead,·you·should·work·at·the | 25 | might·stop·working·if·such·changes·happen.·Instead,·you·should·work·at·the |
26 | <code>TokenTree</code>·level,·e.g.·matching·against·<code>TokenTree::Ident</code>, | 26 | <code>TokenTree</code>·level,·e.g.·matching·against·<code>TokenTree::Ident</code>, |
27 | <code>TokenTree::Punct</code>,·or·<code>TokenTree::Literal</code>.</p> | 27 | <code>TokenTree::Punct</code>,·or·<code>TokenTree::Literal</code>.</p> |
28 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#786-788">source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Extend%3CTokenTree%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.30.0">1.30.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#352-359">source</a></span><a·href="#impl-Extend%3CTokenTree%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a><<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.extend"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#353-358">source</a><a·href="#method.extend"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#tymethod.extend"·class="fn">extend</a><I:·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a><Item·=·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>>>(&mut·self,·trees:·I)</h4></section></summary><div·class='docblock'>Extends·a·collection·with·the·contents·of·an·iterator.·<a·href="../core/iter/traits/collect/trait.Extend.html#tymethod.extend">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.extend_one"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/iter/traits/collect.rs.html#454">source</a><a·href="#method.extend_one"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_one"·class="fn">extend_one</a>(&mut·self,·item:·A)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extend_one</code> <a·href="https://github.com/rust-lang/rust/issues/72631">#72631</a>)</span></div></span><div·class='docblock'>Extends·a·collection·with·exactly·one·element.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.extend_reserve"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/iter/traits/collect.rs.html#462">source</a><a·href="#method.extend_reserve"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_reserve"·class="fn">extend_reserve</a>(&mut·self,·additional:·<a·class="primitive"·href="../std/primitive.usize.html">usize</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extend_one</code> <a·href="https://github.com/rust-lang/rust/issues/72631">#72631</a>)</span></div></span><div·class='docblock'>Reserves·capacity·in·a·collection·for·the·given·number·of·additional·elements.·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_reserve">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CGroup%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#730-734">source</a></span><a·href="#impl-From%3CGroup%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a>>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#731-733">source</a><a·href="#method.from-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a>)·->·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CIdent%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#737-741">source</a></span><a·href="#impl-From%3CIdent%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a>>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-2"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#738-740">source</a><a·href="#method.from-2"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a>)·->·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CLiteral%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#751-755">source</a></span><a·href="#impl-From%3CLiteral%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a>>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-4"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#752-754">source</a><a·href="#method.from-4"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a>)·->·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CPunct%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#744-748">source</a></span><a·href="#impl-From%3CPunct%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a>>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-3"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#745-747">source</a><a·href="#method.from-3"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a>)·->·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CTokenTree%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#247-251">source</a></span><a·href="#impl-From%3CTokenTree%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>Creates·a·token·stream·containing·a·single·token·tree.</p> | 28 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#786-788">source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Extend%3CTokenTree%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.30.0">1.30.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#352-359">source</a></span><a·href="#impl-Extend%3CTokenTree%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a><<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.extend"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#353-358">source</a><a·href="#method.extend"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#tymethod.extend"·class="fn">extend</a><I:·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a><Item·=·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>>>(&mut·self,·trees:·I)</h4></section></summary><div·class='docblock'>Extends·a·collection·with·the·contents·of·an·iterator.·<a·href="../core/iter/traits/collect/trait.Extend.html#tymethod.extend">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.extend_one"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/iter/traits/collect.rs.html#454">source</a><a·href="#method.extend_one"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_one"·class="fn">extend_one</a>(&mut·self,·item:·A)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extend_one</code> <a·href="https://github.com/rust-lang/rust/issues/72631">#72631</a>)</span></div></span><div·class='docblock'>Extends·a·collection·with·exactly·one·element.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.extend_reserve"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/iter/traits/collect.rs.html#462">source</a><a·href="#method.extend_reserve"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_reserve"·class="fn">extend_reserve</a>(&mut·self,·additional:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.usize.html">usize</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extend_one</code> <a·href="https://github.com/rust-lang/rust/issues/72631">#72631</a>)</span></div></span><div·class='docblock'>Reserves·capacity·in·a·collection·for·the·given·number·of·additional·elements.·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_reserve">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CGroup%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#730-734">source</a></span><a·href="#impl-From%3CGroup%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a>>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#731-733">source</a><a·href="#method.from-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a>)·->·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CIdent%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#737-741">source</a></span><a·href="#impl-From%3CIdent%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a>>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-2"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#738-740">source</a><a·href="#method.from-2"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a>)·->·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CLiteral%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#751-755">source</a></span><a·href="#impl-From%3CLiteral%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a>>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-4"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#752-754">source</a><a·href="#method.from-4"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a>)·->·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CPunct%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#744-748">source</a></span><a·href="#impl-From%3CPunct%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a>>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-3"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#745-747">source</a><a·href="#method.from-3"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a>)·->·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CTokenTree%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#247-251">source</a></span><a·href="#impl-From%3CTokenTree%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>Creates·a·token·stream·containing·a·single·token·tree.</p> |
29 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#248-250">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(tree:·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>)·->·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromIterator%3CTokenTree%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#330-337">source</a></span><a·href="#impl-FromIterator%3CTokenTree%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a><<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>Collects·a·number·of·token·trees·into·a·single·stream.</p> | 29 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#248-250">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(tree:·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>)·->·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromIterator%3CTokenTree%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#330-337">source</a></span><a·href="#impl-FromIterator%3CTokenTree%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a><<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>Collects·a·number·of·token·trees·into·a·single·stream.</p> |
30 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from_iter"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#331-336">source</a><a·href="#method.from_iter"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter"·class="fn">from_iter</a><I:·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a><Item·=·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>>>(trees:·I)·->·Self</h4></section></summary><div·class='docblock'>Creates·a·value·from·an·iterator.·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter">Read·more</a></div></details></div></details><section·id="impl-Send-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#681">source</a></span><a·href="#impl-Send-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section><section·id="impl-Sync-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#683">source</a></span><a·href="#impl-Sync-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TokenTree"·class="impl"><a·href="#impl-Freeze-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section><section·id="impl-RefUnwindSafe-for-TokenTree"·class="impl"><a·href="#impl-RefUnwindSafe-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section><section·id="impl-Unpin-for-TokenTree"·class="impl"><a·href="#impl-Unpin-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section><section·id="impl-UnwindSafe-for-TokenTree"·class="impl"><a·href="#impl-UnwindSafe-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where | 30 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from_iter"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#331-336">source</a><a·href="#method.from_iter"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter"·class="fn">from_iter</a><I:·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a><Item·=·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>>>(trees:·I)·->·Self</h4></section></summary><div·class='docblock'>Creates·a·value·from·an·iterator.·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter">Read·more</a></div></details></div></details><section·id="impl-Send-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#681">source</a></span><a·href="#impl-Send-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section><section·id="impl-Sync-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#683">source</a></span><a·href="#impl-Sync-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TokenTree"·class="impl"><a·href="#impl-Freeze-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section><section·id="impl-RefUnwindSafe-for-TokenTree"·class="impl"><a·href="#impl-RefUnwindSafe-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section><section·id="impl-Unpin-for-TokenTree"·class="impl"><a·href="#impl-Unpin-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section><section·id="impl-UnwindSafe-for-TokenTree"·class="impl"><a·href="#impl-UnwindSafe-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where |
31 | ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·for·T<div·class="where">where | 31 | ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·for·T<div·class="where">where |
32 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·for·T<div·class="where">where | 32 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·for·T<div·class="where">where |
33 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where | 33 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where |
34 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-5"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from-5"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p> | 34 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-5"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from-5"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·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<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where | 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<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where |
36 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p> | 36 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·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·of | 37 | <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><T>·for·U</code>·chooses·to·do.</p> | 38 | <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·U</code>·chooses·to·do.</p> |
39 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where | 39 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where |
40 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2555">source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where | 40 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2555">source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where |
41 | ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2561">source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&self)·->·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where | 41 | ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2561">source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&self)·->·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where |
42 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where | 42 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where |
43 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html> | 43 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html> |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Determines·whether·proc_macro·has·been·made·accessible·to·the·currently·running·program."><title>is_available·in·proc_macro·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·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="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec» 2024-10-15)»(built» from» a» source» tarball)</div><div·class="sidebar-elems"></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="index.html">proc_macro</a>::<wbr><a·class="fn"·href="#">is_available</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">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/proc_macro/lib.rs.html#73-75">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·fn·is_available()·->·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Determines·whether·proc_macro·has·been·made·accessible·to·the·currently | 1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Determines·whether·proc_macro·has·been·made·accessible·to·the·currently·running·program."><title>is_available·in·proc_macro·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·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="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec» 2024-10-15)»(built» from» a» source» tarball)</div><div·class="sidebar-elems"></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="index.html">proc_macro</a>::<wbr><a·class="fn"·href="#">is_available</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">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/proc_macro/lib.rs.html#73-75">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·fn·is_available()·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.bool.html">bool</a></code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Determines·whether·proc_macro·has·been·made·accessible·to·the·currently |
2 | running·program.</p> | 2 | running·program.</p> |
3 | <p>The·proc_macro·crate·is·only·intended·for·use·inside·the·implementation·of | 3 | <p>The·proc_macro·crate·is·only·intended·for·use·inside·the·implementation·of |
4 | procedural·macros.·All·the·functions·in·this·crate·panic·if·invoked·from | 4 | procedural·macros.·All·the·functions·in·this·crate·panic·if·invoked·from |
5 | outside·of·a·procedural·macro,·such·as·from·a·build·script·or·unit·test·or | 5 | outside·of·a·procedural·macro,·such·as·from·a·build·script·or·unit·test·or |
6 | ordinary·Rust·binary.</p> | 6 | ordinary·Rust·binary.</p> |
7 | <p>With·consideration·for·Rust·libraries·that·are·designed·to·support·both | 7 | <p>With·consideration·for·Rust·libraries·that·are·designed·to·support·both |
8 | macro·and·non-macro·use·cases,·<code>proc_macro::is_available()</code>·provides·a | 8 | macro·and·non-macro·use·cases,·<code>proc_macro::is_available()</code>·provides·a |
Offset 19, 26 lines modified | Offset 19, 26 lines modified | ||
19 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.note"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#116">source</a><h4·class="code-header">pub·fn·<a·href="#method.note"·class="fn">note</a><T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>>>(self,·message:·T)·->·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·child·diagnostic·message·to·<code>self</code>·with·the·<a·href="enum.Level.html#variant.Note"·title="variant·proc_macro::Level::Note"><code>Level::Note</code></a>·level,·and·the·given·<code>message</code>.</p> | 19 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.note"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#116">source</a><h4·class="code-header">pub·fn·<a·href="#method.note"·class="fn">note</a><T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>>>(self,·message:·T)·->·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·child·diagnostic·message·to·<code>self</code>·with·the·<a·href="enum.Level.html#variant.Note"·title="variant·proc_macro::Level::Note"><code>Level::Note</code></a>·level,·and·the·given·<code>message</code>.</p> |
20 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.span_help"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#117">source</a><h4·class="code-header">pub·fn·<a·href="#method.span_help"·class="fn">span_help</a><S,·T>(self,·spans:·S,·message:·T)·->·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a><div·class="where">where | 20 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.span_help"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#117">source</a><h4·class="code-header">pub·fn·<a·href="#method.span_help"·class="fn">span_help</a><S,·T>(self,·spans:·S,·message:·T)·->·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a><div·class="where">where |
21 | ····S:·<a·class="trait"·href="trait.MultiSpan.html"·title="trait·proc_macro::MultiSpan">MultiSpan</a>, | 21 | ····S:·<a·class="trait"·href="trait.MultiSpan.html"·title="trait·proc_macro::MultiSpan">MultiSpan</a>, |
22 | ····T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>>,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·child·diagnostics·message·to·<code>self</code>·with·the·<a·href="enum.Level.html#variant.Help"·title="variant·proc_macro::Level::Help"><code>Level::Help</code></a>·level,·and·the·given·<code>spans</code>·and·<code>message</code>.</p> | 22 | ····T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>>,</div></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·child·diagnostics·message·to·<code>self</code>·with·the·<a·href="enum.Level.html#variant.Help"·title="variant·proc_macro::Level::Help"><code>Level::Help</code></a>·level,·and·the·given·<code>spans</code>·and·<code>message</code>.</p> |
23 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.help"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#117">source</a><h4·class="code-header">pub·fn·<a·href="#method.help"·class="fn">help</a><T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>>>(self,·message:·T)·->·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·child·diagnostic·message·to·<code>self</code>·with·the·<a·href="enum.Level.html#variant.Help"·title="variant·proc_macro::Level::Help"><code>Level::Help</code></a>·level,·and·the·given·<code>message</code>.</p> | 23 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.help"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#117">source</a><h4·class="code-header">pub·fn·<a·href="#method.help"·class="fn">help</a><T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>>>(self,·message:·T)·->·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Adds·a·new·child·diagnostic·message·to·<code>self</code>·with·the·<a·href="enum.Level.html#variant.Help"·title="variant·proc_macro::Level::Help"><code>Level::Help</code></a>·level,·and·the·given·<code>message</code>.</p> |
24 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.level"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#121-123">source</a><h4·class="code-header">pub·fn·<a·href="#method.level"·class="fn">level</a>(&self)·->·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·diagnostic·<code>level</code>·for·<code>self</code>.</p> | 24 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.level"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#121-123">source</a><h4·class="code-header">pub·fn·<a·href="#method.level"·class="fn">level</a>(&self)·->·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·diagnostic·<code>level</code>·for·<code>self</code>.</p> |
25 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.set_level"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#127-129">source</a><h4·class="code-header">pub·fn·<a·href="#method.set_level"·class="fn">set_level</a>(&mut·self,·level:·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a>)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Sets·the·level·in·<code>self</code>·to·<code>level</code>.</p> | 25 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.set_level"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#127-129">source</a><h4·class="code-header">pub·fn·<a·href="#method.set_level"·class="fn">set_level</a>(&mut·self,·level:·<a·class="enum"·href="enum.Level.html"·title="enum·proc_macro::Level">Level</a>)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Sets·the·level·in·<code>self</code>·to·<code>level</code>.</p> |
26 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.message"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#133-135">source</a><h4·class="code-header">pub·fn·<a·href="#method.message"·class="fn">message</a>(&self)·->·&<a·class="primitive"·href="../std/primitive.str.html">str</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·message·in·<code>self</code>.</p> | 26 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.message"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#133-135">source</a><h4·class="code-header">pub·fn·<a·href="#method.message"·class="fn">message</a>(&self)·->·&<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.str.html">str</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·message·in·<code>self</code>.</p> |
27 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.set_message"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#139-141">source</a><h4·class="code-header">pub·fn·<a·href="#method.set_message"·class="fn">set_message</a><T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>>>(&mut·self,·message:·T)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Sets·the·message·in·<code>self</code>·to·<code>message</code>.</p> | 27 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.set_message"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#139-141">source</a><h4·class="code-header">pub·fn·<a·href="#method.set_message"·class="fn">set_message</a><T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>>>(&mut·self,·message:·T)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Sets·the·message·in·<code>self</code>·to·<code>message</code>.</p> |
28 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.spans"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#145-147">source</a><h4·class="code-header">pub·fn·<a·href="#method.spans"·class="fn">spans</a>(&self)·->·&[<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>]</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·<code>Span</code>s·in·<code>self</code>.</p> | 28 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.spans"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#145-147">source</a><h4·class="code-header">pub·fn·<a·href="#method.spans"·class="fn">spans</a>(&self)·->·&[<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>]</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·<code>Span</code>s·in·<code>self</code>.</p> |
29 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.set_spans"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#151-153">source</a><h4·class="code-header">pub·fn·<a·href="#method.set_spans"·class="fn">set_spans</a><S:·<a·class="trait"·href="trait.MultiSpan.html"·title="trait·proc_macro::MultiSpan">MultiSpan</a>>(&mut·self,·spans:·S)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Sets·the·<code>Span</code>s·in·<code>self</code>·to·<code>spans</code>.</p> | 29 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.set_spans"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#151-153">source</a><h4·class="code-header">pub·fn·<a·href="#method.set_spans"·class="fn">set_spans</a><S:·<a·class="trait"·href="trait.MultiSpan.html"·title="trait·proc_macro::MultiSpan">MultiSpan</a>>(&mut·self,·spans:·S)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Sets·the·<code>Span</code>s·in·<code>self</code>·to·<code>spans</code>.</p> |
30 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.children"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#157-159">source</a><h4·class="code-header">pub·fn·<a·href="#method.children"·class="fn">children</a>(&self)·->·Children<'_></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Returns·an·iterator·over·the·children·diagnostics·of·<code>self</code>.</p> | 30 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.children"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#157-159">source</a><h4·class="code-header">pub·fn·<a·href="#method.children"·class="fn">children</a>(&self)·->·Children<'_></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Returns·an·iterator·over·the·children·diagnostics·of·<code>self</code>.</p> |
31 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.emit"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#163-174">source</a><h4·class="code-header">pub·fn·<a·href="#method.emit"·class="fn">emit</a>(self)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Emit·the·diagnostic.</p> | 31 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.emit"·class="method"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#163-174">source</a><h4·class="code-header">pub·fn·<a·href="#method.emit"·class="fn">emit</a>(self)</h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Emit·the·diagnostic.</p> |
32 | </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Diagnostic"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#49">source</a><a·href="#impl-Clone-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#49">source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&self)·->·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&mut·self,·source:·&Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Diagnostic"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#49">source</a><a·href="#impl-Debug-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#49">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Diagnostic"·class="impl"><a·href="#impl-Freeze-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section><section·id="impl-RefUnwindSafe-for-Diagnostic"·class="impl"><a·href="#impl-RefUnwindSafe-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section><section·id="impl-Send-for-Diagnostic"·class="impl"><a·href="#impl-Send-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section><section·id="impl-Sync-for-Diagnostic"·class="impl"><a·href="#impl-Sync-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section><section·id="impl-Unpin-for-Diagnostic"·class="impl"><a·href="#impl-Unpin-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section><section·id="impl-UnwindSafe-for-Diagnostic"·class="impl"><a·href="#impl-UnwindSafe-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where | 32 | </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Diagnostic"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#49">source</a><a·href="#impl-Clone-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#49">source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&self)·->·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&mut·self,·source:·&Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Diagnostic"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#49">source</a><a·href="#impl-Debug-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#49">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Diagnostic"·class="impl"><a·href="#impl-Freeze-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section><section·id="impl-RefUnwindSafe-for-Diagnostic"·class="impl"><a·href="#impl-RefUnwindSafe-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section><section·id="impl-Send-for-Diagnostic"·class="impl"><a·href="#impl-Send-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section><section·id="impl-Sync-for-Diagnostic"·class="impl"><a·href="#impl-Sync-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section><section·id="impl-Unpin-for-Diagnostic"·class="impl"><a·href="#impl-Unpin-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section><section·id="impl-UnwindSafe-for-Diagnostic"·class="impl"><a·href="#impl-UnwindSafe-for-Diagnostic"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where |
33 | ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·for·T<div·class="where">where | 33 | ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·for·T<div·class="where">where |
34 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·for·T<div·class="where">where | 34 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·for·T<div·class="where">where |
35 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where | 35 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where |
36 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p> | 36 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p> |
37 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where | 37 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where |
38 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p> | 38 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p> |
39 | <p>That·is,·this·conversion·is·whatever·the·implementation·of | 39 | <p>That·is,·this·conversion·is·whatever·the·implementation·of |
40 | <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·U</code>·chooses·to·do.</p> | 40 | <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·U</code>·chooses·to·do.</p> |
41 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where | 41 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where |
42 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where | 42 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where |
43 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where | 43 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where |
44 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html> | 44 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html> |
Offset 1, 12 lines modified | Offset 1, 12 lines modified | ||
1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Error·returned·from·`TokenStream::expand_expr`."><title>ExpandError·in·proc_macro·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec» 2024-10-15)» (built»from» a» source» tarball)</div><h2·class="location"><a·href="#">Expand<wbr>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-Send-for-ExpandError">!Send</a></li><li><a·href="#impl-Sync-for-ExpandError">!Sync</a></li><li><a·href="#impl-Debug-for-ExpandError">Debug</a></li><li><a·href="#impl-Display-for-ExpandError">Display</a></li><li><a·href="#impl-Error-for-ExpandError">Error</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-ExpandError">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ExpandError">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ExpandError">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ExpandError">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a·href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into<U></a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom<U></a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li></ul></section><h2><a·href="index.html">In·crate·proc_<wbr>macro</a></h2></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="index.html">proc_macro</a>::<wbr><a·class="struct"·href="#">ExpandError</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><span·class="out-of-band"><a·class="src"·href="../src/proc_macro/lib.rs.html#119">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code><div·class="code-attribute">#[non_exhaustive]</div>pub·struct·ExpandError;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_expand</code> <a·href="https://github.com/rust-lang/rust/issues/90765">#90765</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Error·returned·from·<code>TokenStream::expand_expr</code>.</p> | 1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Error·returned·from·`TokenStream::expand_expr`."><title>ExpandError·in·proc_macro·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec» 2024-10-15)» (built»from» a» source» tarball)</div><h2·class="location"><a·href="#">Expand<wbr>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-Send-for-ExpandError">!Send</a></li><li><a·href="#impl-Sync-for-ExpandError">!Sync</a></li><li><a·href="#impl-Debug-for-ExpandError">Debug</a></li><li><a·href="#impl-Display-for-ExpandError">Display</a></li><li><a·href="#impl-Error-for-ExpandError">Error</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-ExpandError">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-ExpandError">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-ExpandError">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-ExpandError">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a·href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into<U></a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom<U></a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li></ul></section><h2><a·href="index.html">In·crate·proc_<wbr>macro</a></h2></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="index.html">proc_macro</a>::<wbr><a·class="struct"·href="#">ExpandError</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><span·class="out-of-band"><a·class="src"·href="../src/proc_macro/lib.rs.html#119">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code><div·class="code-attribute">#[non_exhaustive]</div>pub·struct·ExpandError;</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_expand</code> <a·href="https://github.com/rust-lang/rust/issues/90765">#90765</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Error·returned·from·<code>TokenStream::expand_expr</code>.</p> |
2 | </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ExpandError"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#118">source</a><a·href="#impl-Debug-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#118">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-ExpandError"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#122-126">source</a><a·href="#impl-Display-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#123-125">source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Error-for-ExpandError"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#129">source</a><a·href="#impl-Error-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.source"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.30.0">1.30.0</span>···<a·class="src"·href="../src/core/error.rs.html#81">source</a></span><a·href="#method.source"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.source"·class="fn">source</a>(&self)·->·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><&(dyn·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>·+·'static)></h4></section></summary><div·class='docblock'>Returns·the·lower-level·source·of·this·error,·if·any.·<a·href="../core/error/trait.Error.html#method.source">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.description"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/error.rs.html#107">source</a></span><a·href="#method.description"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.description"·class="fn">description</a>(&self)·->·&<a·class="primitive"·href="../std/primitive.str.html">str</a></h4></section></summary><span·class="item-info"><div·class="stab·deprecated"><span·class="emoji">👎</span><span>Deprecated·since·1.42.0:·use·the·Display·impl·or·to_string()</span></div></span><div·class='docblock'>·<a·href="../core/error/trait.Error.html#method.description">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cause"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/error.rs.html#117">source</a></span><a·href="#method.cause"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.cause"·class="fn">cause</a>(&self)·->·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><&dyn·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>></h4></section></summary><span·class="item-info"><div·class="stab·deprecated"><span·class="emoji">👎</span><span>Deprecated·since·1.33.0:·replaced·by·Error::source,·which·can·support·downcasting</span></div></span></details><details·class="toggle·method-toggle"·open><summary><section·id="method.provide"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/error.rs.html#180">source</a><a·href="#method.provide"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.provide"·class="fn">provide</a><'a>(&'a·self,·request:·&mut·<a·class="struct"·href="../core/error/struct.Request.html"·title="struct·core::error::Request">Request</a><'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>error_generic_member_access</code> <a·href="https://github.com/rust-lang/rust/issues/99301">#99301</a>)</span></div></span><div·class='docblock'>Provides·type-based·access·to·context·intended·for·error·reports.·<a·href="../core/error/trait.Error.html#method.provide">Read·more</a></div></details></div></details><section·id="impl-Send-for-ExpandError"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#132">source</a><a·href="#impl-Send-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section><section·id="impl-Sync-for-ExpandError"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#135">source</a><a·href="#impl-Sync-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-ExpandError"·class="impl"><a·href="#impl-Freeze-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section><section·id="impl-RefUnwindSafe-for-ExpandError"·class="impl"><a·href="#impl-RefUnwindSafe-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section><section·id="impl-Unpin-for-ExpandError"·class="impl"><a·href="#impl-Unpin-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section><section·id="impl-UnwindSafe-for-ExpandError"·class="impl"><a·href="#impl-UnwindSafe-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where | 2 | </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-ExpandError"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#118">source</a><a·href="#impl-Debug-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#118">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-ExpandError"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#122-126">source</a><a·href="#impl-Display-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#123-125">source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Error-for-ExpandError"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#129">source</a><a·href="#impl-Error-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.source"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.30.0">1.30.0</span>···<a·class="src"·href="../src/core/error.rs.html#81">source</a></span><a·href="#method.source"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.source"·class="fn">source</a>(&self)·->·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><&(dyn·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>·+·'static)></h4></section></summary><div·class='docblock'>Returns·the·lower-level·source·of·this·error,·if·any.·<a·href="../core/error/trait.Error.html#method.source">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.description"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/error.rs.html#107">source</a></span><a·href="#method.description"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.description"·class="fn">description</a>(&self)·->·&<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.str.html">str</a></h4></section></summary><span·class="item-info"><div·class="stab·deprecated"><span·class="emoji">👎</span><span>Deprecated·since·1.42.0:·use·the·Display·impl·or·to_string()</span></div></span><div·class='docblock'>·<a·href="../core/error/trait.Error.html#method.description">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cause"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/error.rs.html#117">source</a></span><a·href="#method.cause"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.cause"·class="fn">cause</a>(&self)·->·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><&dyn·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>></h4></section></summary><span·class="item-info"><div·class="stab·deprecated"><span·class="emoji">👎</span><span>Deprecated·since·1.33.0:·replaced·by·Error::source,·which·can·support·downcasting</span></div></span></details><details·class="toggle·method-toggle"·open><summary><section·id="method.provide"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/error.rs.html#180">source</a><a·href="#method.provide"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.provide"·class="fn">provide</a><'a>(&'a·self,·request:·&mut·<a·class="struct"·href="../core/error/struct.Request.html"·title="struct·core::error::Request">Request</a><'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>error_generic_member_access</code> <a·href="https://github.com/rust-lang/rust/issues/99301">#99301</a>)</span></div></span><div·class='docblock'>Provides·type-based·access·to·context·intended·for·error·reports.·<a·href="../core/error/trait.Error.html#method.provide">Read·more</a></div></details></div></details><section·id="impl-Send-for-ExpandError"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#132">source</a><a·href="#impl-Send-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section><section·id="impl-Sync-for-ExpandError"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#135">source</a><a·href="#impl-Sync-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-ExpandError"·class="impl"><a·href="#impl-Freeze-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section><section·id="impl-RefUnwindSafe-for-ExpandError"·class="impl"><a·href="#impl-RefUnwindSafe-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section><section·id="impl-Unpin-for-ExpandError"·class="impl"><a·href="#impl-Unpin-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section><section·id="impl-UnwindSafe-for-ExpandError"·class="impl"><a·href="#impl-UnwindSafe-for-ExpandError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where |
3 | ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·for·T<div·class="where">where | 3 | ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·for·T<div·class="where">where |
4 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·for·T<div·class="where">where | 4 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·for·T<div·class="where">where |
5 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p> | 5 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p> |
6 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where | 6 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where |
7 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p> | 7 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p> |
8 | <p>That·is,·this·conversion·is·whatever·the·implementation·of | 8 | <p>That·is,·this·conversion·is·whatever·the·implementation·of |
9 | <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·U</code>·chooses·to·do.</p> | 9 | <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·U</code>·chooses·to·do.</p> |
10 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2555">source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where | 10 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2555">source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where |
11 | ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2561">source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&self)·->·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where | 11 | ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2561">source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&self)·->·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where |
12 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where | 12 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where |
Offset 24, 19 lines modified | Offset 24, 19 lines modified | ||
24 | by·this·group,·but·rather·it·will·only·set·the·span·of·the·delimiter | 24 | by·this·group,·but·rather·it·will·only·set·the·span·of·the·delimiter |
25 | tokens·at·the·level·of·the·<code>Group</code>.</p> | 25 | tokens·at·the·level·of·the·<code>Group</code>.</p> |
26 | </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Group"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#794">source</a></span><a·href="#impl-Clone-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#794">source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&self)·->·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&mut·self,·source:·&Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Group"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#935-943">source</a></span><a·href="#impl-Debug-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#936-942">source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-Group"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#927-932">source</a></span><a·href="#impl-Display-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></summary><div·class="docblock"><p>Prints·the·group·as·a·string·that·should·be·losslessly·convertible·back | 26 | </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Group"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#794">source</a></span><a·href="#impl-Clone-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#794">source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&self)·->·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&mut·self,·source:·&Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Group"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#935-943">source</a></span><a·href="#impl-Debug-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#936-942">source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-Group"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#927-932">source</a></span><a·href="#impl-Display-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></summary><div·class="docblock"><p>Prints·the·group·as·a·string·that·should·be·losslessly·convertible·back |
27 | into·the·same·group·(modulo·spans),·except·for·possibly·<code>TokenTree::Group</code>s | 27 | into·the·same·group·(modulo·spans),·except·for·possibly·<code>TokenTree::Group</code>s |
28 | with·<code>Delimiter::None</code>·delimiters.</p> | 28 | with·<code>Delimiter::None</code>·delimiters.</p> |
29 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#929-931">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CGroup%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#730-734">source</a></span><a·href="#impl-From%3CGroup%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a>>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#731-733">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a>)·->·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><section·id="impl-Send-for-Group"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#799">source</a></span><a·href="#impl-Send-for-Group"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section><section·id="impl-Sync-for-Group"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#801">source</a></span><a·href="#impl-Sync-for-Group"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Group"·class="impl"><a·href="#impl-Freeze-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section><section·id="impl-RefUnwindSafe-for-Group"·class="impl"><a·href="#impl-RefUnwindSafe-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section><section·id="impl-Unpin-for-Group"·class="impl"><a·href="#impl-Unpin-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section><section·id="impl-UnwindSafe-for-Group"·class="impl"><a·href="#impl-UnwindSafe-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where | 29 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#929-931">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CGroup%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#730-734">source</a></span><a·href="#impl-From%3CGroup%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a>>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#731-733">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a>)·->·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><section·id="impl-Send-for-Group"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#799">source</a></span><a·href="#impl-Send-for-Group"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section><section·id="impl-Sync-for-Group"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#801">source</a></span><a·href="#impl-Sync-for-Group"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Group"·class="impl"><a·href="#impl-Freeze-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section><section·id="impl-RefUnwindSafe-for-Group"·class="impl"><a·href="#impl-RefUnwindSafe-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section><section·id="impl-Unpin-for-Group"·class="impl"><a·href="#impl-Unpin-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section><section·id="impl-UnwindSafe-for-Group"·class="impl"><a·href="#impl-UnwindSafe-for-Group"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Group.html"·title="struct·proc_macro::Group">Group</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../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="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·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="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·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="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·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="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·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="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where | 32 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where |
33 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p> | 33 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p> |
34 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where | 34 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where |
35 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p> | 35 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p> |
36 | <p>That·is,·this·conversion·is·whatever·the·implementation·of | 36 | <p>That·is,·this·conversion·is·whatever·the·implementation·of |
37 | <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·U</code>·chooses·to·do.</p> | 37 | <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·U</code>·chooses·to·do.</p> |
38 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where | 38 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where |
39 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2555">source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where | 39 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2555">source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where |
40 | ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2561">source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&self)·->·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where | 40 | ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2561">source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&self)·->·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where |
41 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where | 41 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where |
42 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html> | 42 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html> |
Offset 1, 39 lines modified | Offset 1, 39 lines modified | ||
1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="An·identifier·(`ident`)."><title>Ident·in·proc_macro·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec» 2024-10-15)» (built» from»a» source» tarball)</div><h2·class="location"><a·href="#">Ident</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_raw">new_raw</a></li><li><a·href="#method.set_span">set_span</a></li><li><a·href="#method.span">span</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Ident">Clone</a></li><li><a·href="#impl-Debug-for-Ident">Debug</a></li><li><a·href="#impl-Display-for-Ident">Display</a></li><li><a·href="#impl-From%3CIdent%3E-for-TokenTree">From<Ident></a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Send-for-Ident">!Send</a></li><li><a·href="#impl-Sync-for-Ident">!Sync</a></li><li><a·href="#impl-Freeze-for-Ident">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Ident">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Ident">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Ident">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a·href="#impl-CloneToUninit-for-T">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into<U></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<U></a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li></ul></section><h2><a·href="index.html">In·crate·proc_<wbr>macro</a></h2></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="index.html">proc_macro</a>::<wbr><a·class="struct"·href="#">Ident</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1081">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Ident(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·identifier·(<code>ident</code>).</p> | 1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="An·identifier·(`ident`)."><title>Ident·in·proc_macro·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec» 2024-10-15)» (built» from»a» source» tarball)</div><h2·class="location"><a·href="#">Ident</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_raw">new_raw</a></li><li><a·href="#method.set_span">set_span</a></li><li><a·href="#method.span">span</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Ident">Clone</a></li><li><a·href="#impl-Debug-for-Ident">Debug</a></li><li><a·href="#impl-Display-for-Ident">Display</a></li><li><a·href="#impl-From%3CIdent%3E-for-TokenTree">From<Ident></a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Send-for-Ident">!Send</a></li><li><a·href="#impl-Sync-for-Ident">!Sync</a></li><li><a·href="#impl-Freeze-for-Ident">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Ident">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Ident">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Ident">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a·href="#impl-CloneToUninit-for-T">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into<U></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<U></a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li></ul></section><h2><a·href="index.html">In·crate·proc_<wbr>macro</a></h2></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="index.html">proc_macro</a>::<wbr><a·class="struct"·href="#">Ident</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1081">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Ident(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·identifier·(<code>ident</code>).</p> |
2 | </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Ident"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1083-1137">source</a><a·href="#impl-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1104-1110">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>(string:·&<a·class="primitive"·href="../std/primitive.str.html">str</a>,·span:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·->·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·<code>Ident</code>·with·the·given·<code>string</code>·as·well·as·the·specified | 2 | </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Ident"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1083-1137">source</a><a·href="#impl-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1104-1110">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>(string:·&<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.str.html">str</a>,·span:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·->·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·<code>Ident</code>·with·the·given·<code>string</code>·as·well·as·the·specified |
3 | <code>span</code>. | 3 | <code>span</code>. |
4 | The·<code>string</code>·argument·must·be·a·valid·identifier·permitted·by·the | 4 | The·<code>string</code>·argument·must·be·a·valid·identifier·permitted·by·the |
5 | language·(including·keywords,·e.g.·<code>self</code>·or·<code>fn</code>).·Otherwise,·the·function·will·panic.</p> | 5 | language·(including·keywords,·e.g.·<code>self</code>·or·<code>fn</code>).·Otherwise,·the·function·will·panic.</p> |
6 | <p>Note·that·<code>span</code>,·currently·in·rustc,·configures·the·hygiene·information | 6 | <p>Note·that·<code>span</code>,·currently·in·rustc,·configures·the·hygiene·information |
7 | for·this·identifier.</p> | 7 | for·this·identifier.</p> |
8 | <p>As·of·this·time·<code>Span::call_site()</code>·explicitly·opts-in·to·“call-site”·hygiene | 8 | <p>As·of·this·time·<code>Span::call_site()</code>·explicitly·opts-in·to·“call-site”·hygiene |
9 | meaning·that·identifiers·created·with·this·span·will·be·resolved·as·if·they·were·written | 9 | meaning·that·identifiers·created·with·this·span·will·be·resolved·as·if·they·were·written |
10 | directly·at·the·location·of·the·macro·call,·and·other·code·at·the·macro·call·site·will·be | 10 | directly·at·the·location·of·the·macro·call,·and·other·code·at·the·macro·call·site·will·be |
11 | able·to·refer·to·them·as·well.</p> | 11 | able·to·refer·to·them·as·well.</p> |
12 | <p>Later·spans·like·<code>Span::def_site()</code>·will·allow·to·opt-in·to·“definition-site”·hygiene | 12 | <p>Later·spans·like·<code>Span::def_site()</code>·will·allow·to·opt-in·to·“definition-site”·hygiene |
13 | meaning·that·identifiers·created·with·this·span·will·be·resolved·at·the·location·of·the | 13 | meaning·that·identifiers·created·with·this·span·will·be·resolved·at·the·location·of·the |
14 | macro·definition·and·other·code·at·the·macro·call·site·will·not·be·able·to·refer·to·them.</p> | 14 | macro·definition·and·other·code·at·the·macro·call·site·will·not·be·able·to·refer·to·them.</p> |
15 | <p>Due·to·the·current·importance·of·hygiene·this·constructor,·unlike·other | 15 | <p>Due·to·the·current·importance·of·hygiene·this·constructor,·unlike·other |
16 | tokens,·requires·a·<code>Span</code>·to·be·specified·at·construction.</p> | 16 | tokens,·requires·a·<code>Span</code>·to·be·specified·at·construction.</p> |
17 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_raw"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.47.0">1.47.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1117-1123">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new_raw"·class="fn">new_raw</a>(string:·&<a·class="primitive"·href="../std/primitive.str.html">str</a>,·span:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·->·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h4></section></summary><div·class="docblock"><p>Same·as·<code>Ident::new</code>,·but·creates·a·raw·identifier·(<code>r#ident</code>). | 17 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.new_raw"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.47.0">1.47.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1117-1123">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new_raw"·class="fn">new_raw</a>(string:·&<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.str.html">str</a>,·span:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·->·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h4></section></summary><div·class="docblock"><p>Same·as·<code>Ident::new</code>,·but·creates·a·raw·identifier·(<code>r#ident</code>). |
18 | The·<code>string</code>·argument·be·a·valid·identifier·permitted·by·the·language | 18 | The·<code>string</code>·argument·be·a·valid·identifier·permitted·by·the·language |
19 | (including·keywords,·e.g.·<code>fn</code>).·Keywords·which·are·usable·in·path·segments | 19 | (including·keywords,·e.g.·<code>fn</code>).·Keywords·which·are·usable·in·path·segments |
20 | (e.g.·<code>self</code>,·<code>super</code>)·are·not·supported,·and·will·cause·a·panic.</p> | 20 | (e.g.·<code>self</code>,·<code>super</code>)·are·not·supported,·and·will·cause·a·panic.</p> |
21 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.span"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1128-1130">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.span"·class="fn">span</a>(&self)·->·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section></summary><div·class="docblock"><p>Returns·the·span·of·this·<code>Ident</code>,·encompassing·the·entire·string·returned | 21 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.span"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1128-1130">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.span"·class="fn">span</a>(&self)·->·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section></summary><div·class="docblock"><p>Returns·the·span·of·this·<code>Ident</code>,·encompassing·the·entire·string·returned |
22 | by·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·title="method·alloc::string::ToString::to_string"><code>to_string</code></a>.</p> | 22 | by·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·title="method·alloc::string::ToString::to_string"><code>to_string</code></a>.</p> |
23 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.set_span"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1134-1136">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.set_span"·class="fn">set_span</a>(&mut·self,·span:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)</h4></section></summary><div·class="docblock"><p>Configures·the·span·of·this·<code>Ident</code>,·possibly·changing·its·hygiene·context.</p> | 23 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.set_span"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1134-1136">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.set_span"·class="fn">set_span</a>(&mut·self,·span:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)</h4></section></summary><div·class="docblock"><p>Configures·the·span·of·this·<code>Ident</code>,·possibly·changing·its·hygiene·context.</p> |
24 | </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Ident"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1079">source</a></span><a·href="#impl-Clone-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1079">source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&self)·->·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&mut·self,·source:·&Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Ident"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1160-1167">source</a></span><a·href="#impl-Debug-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1161-1166">source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-Ident"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1150-1157">source</a></span><a·href="#impl-Display-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></summary><div·class="docblock"><p>Prints·the·identifier·as·a·string·that·should·be·losslessly·convertible·back | 24 | </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Ident"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1079">source</a></span><a·href="#impl-Clone-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1079">source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&self)·->·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&mut·self,·source:·&Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Ident"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1160-1167">source</a></span><a·href="#impl-Debug-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1161-1166">source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-Ident"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1150-1157">source</a></span><a·href="#impl-Display-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></summary><div·class="docblock"><p>Prints·the·identifier·as·a·string·that·should·be·losslessly·convertible·back |
25 | into·the·same·identifier.</p> | 25 | into·the·same·identifier.</p> |
26 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1151-1156">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CIdent%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#737-741">source</a></span><a·href="#impl-From%3CIdent%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a>>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#738-740">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a>)·->·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Ident"·class="impl"><a·href="#impl-Freeze-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-RefUnwindSafe-for-Ident"·class="impl"><a·href="#impl-RefUnwindSafe-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-Send-for-Ident"·class="impl"><a·href="#impl-Send-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-Sync-for-Ident"·class="impl"><a·href="#impl-Sync-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-Unpin-for-Ident"·class="impl"><a·href="#impl-Unpin-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-UnwindSafe-for-Ident"·class="impl"><a·href="#impl-UnwindSafe-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where | 26 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1151-1156">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CIdent%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#737-741">source</a></span><a·href="#impl-From%3CIdent%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a>>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#738-740">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a>)·->·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Ident"·class="impl"><a·href="#impl-Freeze-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-RefUnwindSafe-for-Ident"·class="impl"><a·href="#impl-RefUnwindSafe-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-Send-for-Ident"·class="impl"><a·href="#impl-Send-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-Sync-for-Ident"·class="impl"><a·href="#impl-Sync-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-Unpin-for-Ident"·class="impl"><a·href="#impl-Unpin-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section><section·id="impl-UnwindSafe-for-Ident"·class="impl"><a·href="#impl-UnwindSafe-for-Ident"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Ident.html"·title="struct·proc_macro::Ident">Ident</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../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="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·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="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·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="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·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="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·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="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·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="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where |
30 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p> | 30 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p> |
31 | </div></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<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where | 31 | </div></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<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where |
32 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p> | 32 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p> |
33 | <p>That·is,·this·conversion·is·whatever·the·implementation·of | 33 | <p>That·is,·this·conversion·is·whatever·the·implementation·of |
34 | <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·U</code>·chooses·to·do.</p> | 34 | <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·U</code>·chooses·to·do.</p> |
35 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where | 35 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where |
36 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2555">source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where | 36 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2555">source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where |
37 | ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2561">source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&self)·->·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where | 37 | ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2561">source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&self)·->·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where |
38 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where | 38 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where |
39 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html> | 39 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html> |
Offset 1, 12 lines modified | Offset 1, 12 lines modified | ||
1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Error·returned·from·`TokenStream::from_str`."><title>LexError·in·proc_macro·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec» 2024-10-15)» (built» from» a» source» tarball)</div><h2·class="location"><a·href="#">LexError</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-Send-for-LexError">!Send</a></li><li><a·href="#impl-Sync-for-LexError">!Sync</a></li><li><a·href="#impl-Debug-for-LexError">Debug</a></li><li><a·href="#impl-Display-for-LexError">Display</a></li><li><a·href="#impl-Error-for-LexError">Error</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-LexError">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-LexError">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-LexError">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-LexError">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a·href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into<U></a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom<U></a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li></ul></section><h2><a·href="index.html">In·crate·proc_<wbr>macro</a></h2></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="index.html">proc_macro</a>::<wbr><a·class="struct"·href="#">LexError</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#98">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code><div·class="code-attribute">#[non_exhaustive]</div>pub·struct·LexError;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Error·returned·from·<code>TokenStream::from_str</code>.</p> | 1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Error·returned·from·`TokenStream::from_str`."><title>LexError·in·proc_macro·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec» 2024-10-15)» (built» from» a» source» tarball)</div><h2·class="location"><a·href="#">LexError</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-Send-for-LexError">!Send</a></li><li><a·href="#impl-Sync-for-LexError">!Sync</a></li><li><a·href="#impl-Debug-for-LexError">Debug</a></li><li><a·href="#impl-Display-for-LexError">Display</a></li><li><a·href="#impl-Error-for-LexError">Error</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-LexError">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-LexError">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-LexError">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-LexError">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a·href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into<U></a></li><li><a·href="#impl-ToString-for-T">ToString</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom<U></a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li></ul></section><h2><a·href="index.html">In·crate·proc_<wbr>macro</a></h2></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="index.html">proc_macro</a>::<wbr><a·class="struct"·href="#">LexError</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#98">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code><div·class="code-attribute">#[non_exhaustive]</div>pub·struct·LexError;</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Error·returned·from·<code>TokenStream::from_str</code>.</p> |
2 | </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-LexError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#97">source</a></span><a·href="#impl-Debug-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#97">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-LexError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.44.0">1.44.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#101-105">source</a></span><a·href="#impl-Display-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#102-104">source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Error-for-LexError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.44.0">1.44.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#108">source</a></span><a·href="#impl-Error-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.source"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.30.0">1.30.0</span>···<a·class="src"·href="../src/core/error.rs.html#81">source</a></span><a·href="#method.source"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.source"·class="fn">source</a>(&self)·->·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><&(dyn·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>·+·'static)></h4></section></summary><div·class='docblock'>Returns·the·lower-level·source·of·this·error,·if·any.·<a·href="../core/error/trait.Error.html#method.source">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.description"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/error.rs.html#107">source</a></span><a·href="#method.description"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.description"·class="fn">description</a>(&self)·->·&<a·class="primitive"·href="../std/primitive.str.html">str</a></h4></section></summary><span·class="item-info"><div·class="stab·deprecated"><span·class="emoji">👎</span><span>Deprecated·since·1.42.0:·use·the·Display·impl·or·to_string()</span></div></span><div·class='docblock'>·<a·href="../core/error/trait.Error.html#method.description">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cause"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/error.rs.html#117">source</a></span><a·href="#method.cause"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.cause"·class="fn">cause</a>(&self)·->·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><&dyn·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>></h4></section></summary><span·class="item-info"><div·class="stab·deprecated"><span·class="emoji">👎</span><span>Deprecated·since·1.33.0:·replaced·by·Error::source,·which·can·support·downcasting</span></div></span></details><details·class="toggle·method-toggle"·open><summary><section·id="method.provide"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/error.rs.html#180">source</a><a·href="#method.provide"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.provide"·class="fn">provide</a><'a>(&'a·self,·request:·&mut·<a·class="struct"·href="../core/error/struct.Request.html"·title="struct·core::error::Request">Request</a><'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>error_generic_member_access</code> <a·href="https://github.com/rust-lang/rust/issues/99301">#99301</a>)</span></div></span><div·class='docblock'>Provides·type-based·access·to·context·intended·for·error·reports.·<a·href="../core/error/trait.Error.html#method.provide">Read·more</a></div></details></div></details><section·id="impl-Send-for-LexError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#111">source</a></span><a·href="#impl-Send-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section><section·id="impl-Sync-for-LexError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#113">source</a></span><a·href="#impl-Sync-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-LexError"·class="impl"><a·href="#impl-Freeze-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section><section·id="impl-RefUnwindSafe-for-LexError"·class="impl"><a·href="#impl-RefUnwindSafe-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section><section·id="impl-Unpin-for-LexError"·class="impl"><a·href="#impl-Unpin-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section><section·id="impl-UnwindSafe-for-LexError"·class="impl"><a·href="#impl-UnwindSafe-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where | 2 | </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-LexError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#97">source</a></span><a·href="#impl-Debug-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#97">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-LexError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.44.0">1.44.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#101-105">source</a></span><a·href="#impl-Display-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#102-104">source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Error-for-LexError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.44.0">1.44.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#108">source</a></span><a·href="#impl-Error-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.source"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.30.0">1.30.0</span>···<a·class="src"·href="../src/core/error.rs.html#81">source</a></span><a·href="#method.source"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.source"·class="fn">source</a>(&self)·->·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><&(dyn·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>·+·'static)></h4></section></summary><div·class='docblock'>Returns·the·lower-level·source·of·this·error,·if·any.·<a·href="../core/error/trait.Error.html#method.source">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.description"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/error.rs.html#107">source</a></span><a·href="#method.description"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.description"·class="fn">description</a>(&self)·->·&<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.str.html">str</a></h4></section></summary><span·class="item-info"><div·class="stab·deprecated"><span·class="emoji">👎</span><span>Deprecated·since·1.42.0:·use·the·Display·impl·or·to_string()</span></div></span><div·class='docblock'>·<a·href="../core/error/trait.Error.html#method.description">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cause"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/error.rs.html#117">source</a></span><a·href="#method.cause"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.cause"·class="fn">cause</a>(&self)·->·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><&dyn·<a·class="trait"·href="../core/error/trait.Error.html"·title="trait·core::error::Error">Error</a>></h4></section></summary><span·class="item-info"><div·class="stab·deprecated"><span·class="emoji">👎</span><span>Deprecated·since·1.33.0:·replaced·by·Error::source,·which·can·support·downcasting</span></div></span></details><details·class="toggle·method-toggle"·open><summary><section·id="method.provide"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/error.rs.html#180">source</a><a·href="#method.provide"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/error/trait.Error.html#method.provide"·class="fn">provide</a><'a>(&'a·self,·request:·&mut·<a·class="struct"·href="../core/error/struct.Request.html"·title="struct·core::error::Request">Request</a><'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>error_generic_member_access</code> <a·href="https://github.com/rust-lang/rust/issues/99301">#99301</a>)</span></div></span><div·class='docblock'>Provides·type-based·access·to·context·intended·for·error·reports.·<a·href="../core/error/trait.Error.html#method.provide">Read·more</a></div></details></div></details><section·id="impl-Send-for-LexError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#111">source</a></span><a·href="#impl-Send-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section><section·id="impl-Sync-for-LexError"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#113">source</a></span><a·href="#impl-Sync-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-LexError"·class="impl"><a·href="#impl-Freeze-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section><section·id="impl-RefUnwindSafe-for-LexError"·class="impl"><a·href="#impl-RefUnwindSafe-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section><section·id="impl-Unpin-for-LexError"·class="impl"><a·href="#impl-Unpin-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section><section·id="impl-UnwindSafe-for-LexError"·class="impl"><a·href="#impl-UnwindSafe-for-LexError"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where |
3 | ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·for·T<div·class="where">where | 3 | ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·for·T<div·class="where">where |
4 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·for·T<div·class="where">where | 4 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·for·T<div·class="where">where |
5 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p> | 5 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p> |
6 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where | 6 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Into%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#748-750">source</a><a·href="#impl-Into%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where |
7 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p> | 7 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p> |
8 | <p>That·is,·this·conversion·is·whatever·the·implementation·of | 8 | <p>That·is,·this·conversion·is·whatever·the·implementation·of |
9 | <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·U</code>·chooses·to·do.</p> | 9 | <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·U</code>·chooses·to·do.</p> |
10 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2555">source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where | 10 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2555">source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where |
11 | ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2561">source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&self)·->·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where | 11 | ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2561">source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&self)·->·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where |
12 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where | 12 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where |
Offset 1, 315 lines modified | Offset 1, 315 lines modified | ||
1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="A·literal·string·(`"hello"`),·byte·string·(`b"hello"`),·character·(`'a'`),·byte·character·(`b'a'`),·an·integer·or·floating·point·number·with·or·without·a·suffix·(`1`,·`1u8`,·`2.3`,·`2.3f32`).·Boolean·literals·like·`true`·and·`false`·do·not·belong·here,·they·are·`Ident`s."><title>Literal·in·proc_macro·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec» 2024-10-15)» (built»from» a» source» tarball)</div><h2·class="location"><a·href="#">Literal</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.byte_character">byte_character</a></li><li><a·href="#method.byte_string">byte_string</a></li><li><a·href="#method.c_string">c_string</a></li><li><a·href="#method.character">character</a></li><li><a·href="#method.f32_suffixed">f32_suffixed</a></li><li><a·href="#method.f32_unsuffixed">f32_unsuffixed</a></li><li><a·href="#method.f64_suffixed">f64_suffixed</a></li><li><a·href="#method.f64_unsuffixed">f64_unsuffixed</a></li><li><a·href="#method.i128_suffixed">i128_suffixed</a></li><li><a·href="#method.i128_unsuffixed">i128_unsuffixed</a></li><li><a·href="#method.i16_suffixed">i16_suffixed</a></li><li><a·href="#method.i16_unsuffixed">i16_unsuffixed</a></li><li><a·href="#method.i32_suffixed">i32_suffixed</a></li><li><a·href="#method.i32_unsuffixed">i32_unsuffixed</a></li><li><a·href="#method.i64_suffixed">i64_suffixed</a></li><li><a·href="#method.i64_unsuffixed">i64_unsuffixed</a></li><li><a·href="#method.i8_suffixed">i8_suffixed</a></li><li><a·href="#method.i8_unsuffixed">i8_unsuffixed</a></li><li><a·href="#method.isize_suffixed">isize_suffixed</a></li><li><a·href="#method.isize_unsuffixed">isize_unsuffixed</a></li><li><a·href="#method.set_span">set_span</a></li><li><a·href="#method.span">span</a></li><li><a·href="#method.string">string</a></li><li><a·href="#method.subspan">subspan</a></li><li><a·href="#method.u128_suffixed">u128_suffixed</a></li><li><a·href="#method.u128_unsuffixed">u128_unsuffixed</a></li><li><a·href="#method.u16_suffixed">u16_suffixed</a></li><li><a·href="#method.u16_unsuffixed">u16_unsuffixed</a></li><li><a·href="#method.u32_suffixed">u32_suffixed</a></li><li><a·href="#method.u32_unsuffixed">u32_unsuffixed</a></li><li><a·href="#method.u64_suffixed">u64_suffixed</a></li><li><a·href="#method.u64_unsuffixed">u64_unsuffixed</a></li><li><a·href="#method.u8_suffixed">u8_suffixed</a></li><li><a·href="#method.u8_unsuffixed">u8_unsuffixed</a></li><li><a·href="#method.usize_suffixed">usize_suffixed</a></li><li><a·href="#method.usize_unsuffixed">usize_unsuffixed</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Literal">Clone</a></li><li><a·href="#impl-Debug-for-Literal">Debug</a></li><li><a·href="#impl-Display-for-Literal">Display</a></li><li><a·href="#impl-From%3CLiteral%3E-for-TokenTree">From<Literal></a></li><li><a·href="#impl-FromStr-for-Literal">FromStr</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Send-for-Literal">!Send</a></li><li><a·href="#impl-Sync-for-Literal">!Sync</a></li><li><a·href="#impl-Freeze-for-Literal">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Literal">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Literal">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Literal">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a·href="#impl-CloneToUninit-for-T">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into<U></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<U></a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li></ul></section><h2><a·href="index.html">In·crate·proc_<wbr>macro</a></h2></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="index.html">proc_macro</a>::<wbr><a·class="struct"·href="#">Literal</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1175">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Literal(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·literal·string·(<code>"hello"</code>),·byte·string·(<code>b"hello"</code>), | 1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="A·literal·string·(`"hello"`),·byte·string·(`b"hello"`),·character·(`'a'`),·byte·character·(`b'a'`),·an·integer·or·floating·point·number·with·or·without·a·suffix·(`1`,·`1u8`,·`2.3`,·`2.3f32`).·Boolean·literals·like·`true`·and·`false`·do·not·belong·here,·they·are·`Ident`s."><title>Literal·in·proc_macro·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec» 2024-10-15)» (built»from» a» source» tarball)</div><h2·class="location"><a·href="#">Literal</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.byte_character">byte_character</a></li><li><a·href="#method.byte_string">byte_string</a></li><li><a·href="#method.c_string">c_string</a></li><li><a·href="#method.character">character</a></li><li><a·href="#method.f32_suffixed">f32_suffixed</a></li><li><a·href="#method.f32_unsuffixed">f32_unsuffixed</a></li><li><a·href="#method.f64_suffixed">f64_suffixed</a></li><li><a·href="#method.f64_unsuffixed">f64_unsuffixed</a></li><li><a·href="#method.i128_suffixed">i128_suffixed</a></li><li><a·href="#method.i128_unsuffixed">i128_unsuffixed</a></li><li><a·href="#method.i16_suffixed">i16_suffixed</a></li><li><a·href="#method.i16_unsuffixed">i16_unsuffixed</a></li><li><a·href="#method.i32_suffixed">i32_suffixed</a></li><li><a·href="#method.i32_unsuffixed">i32_unsuffixed</a></li><li><a·href="#method.i64_suffixed">i64_suffixed</a></li><li><a·href="#method.i64_unsuffixed">i64_unsuffixed</a></li><li><a·href="#method.i8_suffixed">i8_suffixed</a></li><li><a·href="#method.i8_unsuffixed">i8_unsuffixed</a></li><li><a·href="#method.isize_suffixed">isize_suffixed</a></li><li><a·href="#method.isize_unsuffixed">isize_unsuffixed</a></li><li><a·href="#method.set_span">set_span</a></li><li><a·href="#method.span">span</a></li><li><a·href="#method.string">string</a></li><li><a·href="#method.subspan">subspan</a></li><li><a·href="#method.u128_suffixed">u128_suffixed</a></li><li><a·href="#method.u128_unsuffixed">u128_unsuffixed</a></li><li><a·href="#method.u16_suffixed">u16_suffixed</a></li><li><a·href="#method.u16_unsuffixed">u16_unsuffixed</a></li><li><a·href="#method.u32_suffixed">u32_suffixed</a></li><li><a·href="#method.u32_unsuffixed">u32_unsuffixed</a></li><li><a·href="#method.u64_suffixed">u64_suffixed</a></li><li><a·href="#method.u64_unsuffixed">u64_unsuffixed</a></li><li><a·href="#method.u8_suffixed">u8_suffixed</a></li><li><a·href="#method.u8_unsuffixed">u8_unsuffixed</a></li><li><a·href="#method.usize_suffixed">usize_suffixed</a></li><li><a·href="#method.usize_unsuffixed">usize_unsuffixed</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-Literal">Clone</a></li><li><a·href="#impl-Debug-for-Literal">Debug</a></li><li><a·href="#impl-Display-for-Literal">Display</a></li><li><a·href="#impl-From%3CLiteral%3E-for-TokenTree">From<Literal></a></li><li><a·href="#impl-FromStr-for-Literal">FromStr</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Send-for-Literal">!Send</a></li><li><a·href="#impl-Sync-for-Literal">!Sync</a></li><li><a·href="#impl-Freeze-for-Literal">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Literal">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Literal">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Literal">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a·href="#impl-CloneToUninit-for-T">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into<U></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<U></a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li></ul></section><h2><a·href="index.html">In·crate·proc_<wbr>macro</a></h2></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="index.html">proc_macro</a>::<wbr><a·class="struct"·href="#">Literal</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1175">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Literal(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·literal·string·(<code>"hello"</code>),·byte·string·(<code>b"hello"</code>), |
2 | character·(<code>'a'</code>),·byte·character·(<code>b'a'</code>),·an·integer·or·floating·point·number | 2 | character·(<code>'a'</code>),·byte·character·(<code>b'a'</code>),·an·integer·or·floating·point·number |
3 | with·or·without·a·suffix·(<code>1</code>,·<code>1u8</code>,·<code>2.3</code>,·<code>2.3f32</code>). | 3 | with·or·without·a·suffix·(<code>1</code>,·<code>1u8</code>,·<code>2.3</code>,·<code>2.3f32</code>). |
4 | Boolean·literals·like·<code>true</code>·and·<code>false</code>·do·not·belong·here,·they·are·<code>Ident</code>s.</p> | 4 | Boolean·literals·like·<code>true</code>·and·<code>false</code>·do·not·belong·here,·they·are·<code>Ident</code>s.</p> |
5 | </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Literal"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1229-1497">source</a><a·href="#impl-Literal"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.u8_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u8_suffixed"·class="fn">u8_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.u8.html">u8</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> | 5 | </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Literal"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1229-1497">source</a><a·href="#impl-Literal"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.u8_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u8_suffixed"·class="fn">u8_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.u8.html">u8</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> |
6 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer | 6 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer |
7 | value·specified·is·the·first·part·of·the·token·and·the·integral·is | 7 | value·specified·is·the·first·part·of·the·token·and·the·integral·is |
8 | also·suffixed·at·the·end. | 8 | also·suffixed·at·the·end. |
9 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through | 9 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through |
10 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> | 10 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> |
11 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> | 11 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> |
12 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method | 12 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method |
13 | below.</p> | 13 | below.</p> |
14 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u16_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u16_suffixed"·class="fn">u16_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.u16.html">u16</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> | 14 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u16_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u16_suffixed"·class="fn">u16_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.u16.html">u16</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> |
15 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer | 15 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer |
16 | value·specified·is·the·first·part·of·the·token·and·the·integral·is | 16 | value·specified·is·the·first·part·of·the·token·and·the·integral·is |
17 | also·suffixed·at·the·end. | 17 | also·suffixed·at·the·end. |
18 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through | 18 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through |
19 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> | 19 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> |
20 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> | 20 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> |
21 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method | 21 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method |
22 | below.</p> | 22 | below.</p> |
23 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u32_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u32_suffixed"·class="fn">u32_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.u32.html">u32</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> | 23 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u32_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u32_suffixed"·class="fn">u32_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.u32.html">u32</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> |
24 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer | 24 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer |
25 | value·specified·is·the·first·part·of·the·token·and·the·integral·is | 25 | value·specified·is·the·first·part·of·the·token·and·the·integral·is |
26 | also·suffixed·at·the·end. | 26 | also·suffixed·at·the·end. |
27 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through | 27 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through |
28 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> | 28 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> |
29 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> | 29 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> |
30 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method | 30 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method |
31 | below.</p> | 31 | below.</p> |
32 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u64_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u64_suffixed"·class="fn">u64_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.u64.html">u64</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> | 32 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u64_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u64_suffixed"·class="fn">u64_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.u64.html">u64</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> |
33 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer | 33 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer |
34 | value·specified·is·the·first·part·of·the·token·and·the·integral·is | 34 | value·specified·is·the·first·part·of·the·token·and·the·integral·is |
35 | also·suffixed·at·the·end. | 35 | also·suffixed·at·the·end. |
36 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through | 36 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through |
37 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> | 37 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> |
38 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> | 38 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> |
39 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method | 39 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method |
40 | below.</p> | 40 | below.</p> |
41 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u128_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u128_suffixed"·class="fn">u128_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.u128.html">u128</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> | 41 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u128_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u128_suffixed"·class="fn">u128_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.u128.html">u128</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> |
42 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer | 42 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer |
43 | value·specified·is·the·first·part·of·the·token·and·the·integral·is | 43 | value·specified·is·the·first·part·of·the·token·and·the·integral·is |
44 | also·suffixed·at·the·end. | 44 | also·suffixed·at·the·end. |
45 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through | 45 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through |
46 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> | 46 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> |
47 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> | 47 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> |
48 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method | 48 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method |
49 | below.</p> | 49 | below.</p> |
50 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.usize_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.usize_suffixed"·class="fn">usize_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.usize.html">usize</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> | 50 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.usize_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.usize_suffixed"·class="fn">usize_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.usize.html">usize</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> |
51 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer | 51 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer |
52 | value·specified·is·the·first·part·of·the·token·and·the·integral·is | 52 | value·specified·is·the·first·part·of·the·token·and·the·integral·is |
53 | also·suffixed·at·the·end. | 53 | also·suffixed·at·the·end. |
54 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through | 54 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through |
55 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> | 55 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> |
56 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> | 56 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> |
57 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method | 57 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method |
58 | below.</p> | 58 | below.</p> |
59 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.i8_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.i8_suffixed"·class="fn">i8_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.i8.html">i8</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> | 59 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.i8_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.i8_suffixed"·class="fn">i8_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.i8.html">i8</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> |
60 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer | 60 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer |
61 | value·specified·is·the·first·part·of·the·token·and·the·integral·is | 61 | value·specified·is·the·first·part·of·the·token·and·the·integral·is |
62 | also·suffixed·at·the·end. | 62 | also·suffixed·at·the·end. |
63 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through | 63 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through |
64 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> | 64 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> |
65 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> | 65 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> |
66 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method | 66 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method |
67 | below.</p> | 67 | below.</p> |
68 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.i16_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.i16_suffixed"·class="fn">i16_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.i16.html">i16</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> | 68 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.i16_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.i16_suffixed"·class="fn">i16_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.i16.html">i16</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> |
69 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer | 69 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer |
70 | value·specified·is·the·first·part·of·the·token·and·the·integral·is | 70 | value·specified·is·the·first·part·of·the·token·and·the·integral·is |
71 | also·suffixed·at·the·end. | 71 | also·suffixed·at·the·end. |
72 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through | 72 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through |
73 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> | 73 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> |
74 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> | 74 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> |
75 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method | 75 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method |
76 | below.</p> | 76 | below.</p> |
77 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.i32_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.i32_suffixed"·class="fn">i32_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.i32.html">i32</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> | 77 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.i32_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.i32_suffixed"·class="fn">i32_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.i32.html">i32</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> |
78 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer | 78 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer |
79 | value·specified·is·the·first·part·of·the·token·and·the·integral·is | 79 | value·specified·is·the·first·part·of·the·token·and·the·integral·is |
80 | also·suffixed·at·the·end. | 80 | also·suffixed·at·the·end. |
81 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through | 81 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through |
82 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> | 82 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> |
83 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> | 83 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> |
84 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method | 84 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method |
85 | below.</p> | 85 | below.</p> |
86 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.i64_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.i64_suffixed"·class="fn">i64_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.i64.html">i64</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> | 86 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.i64_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.i64_suffixed"·class="fn">i64_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.i64.html">i64</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> |
87 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer | 87 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer |
88 | value·specified·is·the·first·part·of·the·token·and·the·integral·is | 88 | value·specified·is·the·first·part·of·the·token·and·the·integral·is |
89 | also·suffixed·at·the·end. | 89 | also·suffixed·at·the·end. |
90 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through | 90 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through |
91 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> | 91 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> |
92 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> | 92 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> |
93 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method | 93 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method |
94 | below.</p> | 94 | below.</p> |
95 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.i128_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.i128_suffixed"·class="fn">i128_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.i128.html">i128</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> | 95 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.i128_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.i128_suffixed"·class="fn">i128_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.i128.html">i128</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> |
96 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer | 96 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer |
97 | value·specified·is·the·first·part·of·the·token·and·the·integral·is | 97 | value·specified·is·the·first·part·of·the·token·and·the·integral·is |
98 | also·suffixed·at·the·end. | 98 | also·suffixed·at·the·end. |
99 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through | 99 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through |
100 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> | 100 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> |
101 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> | 101 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> |
102 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method | 102 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method |
103 | below.</p> | 103 | below.</p> |
104 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.isize_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.isize_suffixed"·class="fn">isize_suffixed</a>(n:·<a·class="primitive"·href="../std/primitive.isize.html">isize</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> | 104 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.isize_suffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1239-1252">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.isize_suffixed"·class="fn">isize_suffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.isize.html">isize</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·suffixed·integer·literal·with·the·specified·value.</p> |
105 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer | 105 | <p>This·function·will·create·an·integer·like·<code>1u32</code>·where·the·integer |
106 | value·specified·is·the·first·part·of·the·token·and·the·integral·is | 106 | value·specified·is·the·first·part·of·the·token·and·the·integral·is |
107 | also·suffixed·at·the·end. | 107 | also·suffixed·at·the·end. |
108 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through | 108 | Literals·created·from·negative·numbers·might·not·survive·round-trips·through |
109 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> | 109 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> |
110 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> | 110 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> |
111 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method | 111 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method |
112 | below.</p> | 112 | below.</p> |
113 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u8_unsuffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1254-1267">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u8_unsuffixed"·class="fn">u8_unsuffixed</a>(n:·<a·class="primitive"·href="../std/primitive.u8.html">u8</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·unsuffixed·integer·literal·with·the·specified·value.</p> | 113 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u8_unsuffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1254-1267">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u8_unsuffixed"·class="fn">u8_unsuffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.u8.html">u8</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·unsuffixed·integer·literal·with·the·specified·value.</p> |
114 | <p>This·function·will·create·an·integer·like·<code>1</code>·where·the·integer | 114 | <p>This·function·will·create·an·integer·like·<code>1</code>·where·the·integer |
115 | value·specified·is·the·first·part·of·the·token.·No·suffix·is | 115 | value·specified·is·the·first·part·of·the·token.·No·suffix·is |
116 | specified·on·this·token,·meaning·that·invocations·like | 116 | specified·on·this·token,·meaning·that·invocations·like |
117 | <code>Literal::i8_unsuffixed(1)</code>·are·equivalent·to | 117 | <code>Literal::i8_unsuffixed(1)</code>·are·equivalent·to |
118 | <code>Literal::u32_unsuffixed(1)</code>. | 118 | <code>Literal::u32_unsuffixed(1)</code>. |
119 | Literals·created·from·negative·numbers·might·not·survive·rountrips·through | 119 | Literals·created·from·negative·numbers·might·not·survive·rountrips·through |
120 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> | 120 | <code>TokenStream</code>·or·strings·and·may·be·broken·into·two·tokens·(<code>-</code>·and·positive·literal).</p> |
121 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> | 121 | <p>Literals·created·through·this·method·have·the·<code>Span::call_site()</code> |
122 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method | 122 | span·by·default,·which·can·be·configured·with·the·<code>set_span</code>·method |
123 | below.</p> | 123 | below.</p> |
124 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u16_unsuffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1254-1267">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u16_unsuffixed"·class="fn">u16_unsuffixed</a>(n:·<a·class="primitive"·href="../std/primitive.u16.html">u16</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·unsuffixed·integer·literal·with·the·specified·value.</p> | 124 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.u16_unsuffixed"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1254-1267">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.u16_unsuffixed"·class="fn">u16_unsuffixed</a>(n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.u16.html">u16</a>)·->·<a·class="struct"·href="struct.Literal.html"·title="struct·proc_macro::Literal">Literal</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·unsuffixed·integer·literal·with·the·specified·value.</p> |
125 | <p>This·function·will·create·an·integer·like·<code>1</code>·where·the·integer | 125 | <p>This·function·will·create·an·integer·like·<code>1</code>·where·the·integer |
126 | value·specified·is·the·first·part·of·the·token.·No·suffix·is | 126 | value·specified·is·the·first·part·of·the·token.·No·suffix·is |
127 | specified·on·this·token,·meaning·that·invocations·like | 127 | specified·on·this·token,·meaning·that·invocations·like |
Max diff block lines reached; 76096/111769 bytes (68.08%) of diff not shown. |
Offset 1, 32 lines modified | Offset 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·`Punct`·is·a·single·punctuation·character·such·as·`+`,·`-`·or·`#`."><title>Punct·in·proc_macro·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec» 2024-10-15)»(built» from» a» source» tarball)</div><h2·class="location"><a·href="#">Punct</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_char">as_char</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.set_span">set_span</a></li><li><a·href="#method.spacing">spacing</a></li><li><a·href="#method.span">span</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Send-for-Punct">!Send</a></li><li><a·href="#impl-Sync-for-Punct">!Sync</a></li><li><a·href="#impl-Clone-for-Punct">Clone</a></li><li><a·href="#impl-Debug-for-Punct">Debug</a></li><li><a·href="#impl-Display-for-Punct">Display</a></li><li><a·href="#impl-From%3CPunct%3E-for-TokenTree">From<Punct></a></li><li><a·href="#impl-PartialEq%3CPunct%3E-for-char">PartialEq<Punct></a></li><li><a·href="#impl-PartialEq%3Cchar%3E-for-Punct">PartialEq<char></a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Punct">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Punct">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Punct">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Punct">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a·href="#impl-CloneToUninit-for-T">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into<U></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<U></a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li></ul></section><h2><a·href="index.html">In·crate·proc_<wbr>macro</a></h2></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="index.html">proc_macro</a>::<wbr><a·class="struct"·href="#">Punct</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#951">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Punct(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·<code>Punct</code>·is·a·single·punctuation·character·such·as·<code>+</code>,·<code>-</code>·or·<code>#</code>.</p> | 1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="A·`Punct`·is·a·single·punctuation·character·such·as·`+`,·`-`·or·`#`."><title>Punct·in·proc_macro·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec» 2024-10-15)»(built» from» a» source» tarball)</div><h2·class="location"><a·href="#">Punct</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.as_char">as_char</a></li><li><a·href="#method.new">new</a></li><li><a·href="#method.set_span">set_span</a></li><li><a·href="#method.spacing">spacing</a></li><li><a·href="#method.span">span</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Send-for-Punct">!Send</a></li><li><a·href="#impl-Sync-for-Punct">!Sync</a></li><li><a·href="#impl-Clone-for-Punct">Clone</a></li><li><a·href="#impl-Debug-for-Punct">Debug</a></li><li><a·href="#impl-Display-for-Punct">Display</a></li><li><a·href="#impl-From%3CPunct%3E-for-TokenTree">From<Punct></a></li><li><a·href="#impl-PartialEq%3CPunct%3E-for-char">PartialEq<Punct></a></li><li><a·href="#impl-PartialEq%3Cchar%3E-for-Punct">PartialEq<char></a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Freeze-for-Punct">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-Punct">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-Punct">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-Punct">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a·href="#impl-CloneToUninit-for-T">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into<U></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<U></a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li></ul></section><h2><a·href="index.html">In·crate·proc_<wbr>macro</a></h2></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="index.html">proc_macro</a>::<wbr><a·class="struct"·href="#">Punct</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#951">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·Punct(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>A·<code>Punct</code>·is·a·single·punctuation·character·such·as·<code>+</code>,·<code>-</code>·or·<code>#</code>.</p> |
2 | <p>Multi-character·operators·like·<code>+=</code>·are·represented·as·two·instances·of·<code>Punct</code>·with·different | 2 | <p>Multi-character·operators·like·<code>+=</code>·are·represented·as·two·instances·of·<code>Punct</code>·with·different |
3 | forms·of·<code>Spacing</code>·returned.</p> | 3 | forms·of·<code>Spacing</code>·returned.</p> |
4 | </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Punct"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#986-1034">source</a><a·href="#impl-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#994-1007">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>(ch:·<a·class="primitive"·href="../std/primitive.char.html">char</a>,·spacing:·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a>)·->·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·<code>Punct</code>·from·the·given·character·and·spacing. | 4 | </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Punct"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#986-1034">source</a><a·href="#impl-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#994-1007">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>(ch:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.char.html">char</a>,·spacing:·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a>)·->·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·<code>Punct</code>·from·the·given·character·and·spacing. |
5 | The·<code>ch</code>·argument·must·be·a·valid·punctuation·character·permitted·by·the·language, | 5 | The·<code>ch</code>·argument·must·be·a·valid·punctuation·character·permitted·by·the·language, |
6 | otherwise·the·function·will·panic.</p> | 6 | otherwise·the·function·will·panic.</p> |
7 | <p>The·returned·<code>Punct</code>·will·have·the·default·span·of·<code>Span::call_site()</code> | 7 | <p>The·returned·<code>Punct</code>·will·have·the·default·span·of·<code>Span::call_site()</code> |
8 | which·can·be·further·configured·with·the·<code>set_span</code>·method·below.</p> | 8 | which·can·be·further·configured·with·the·<code>set_span</code>·method·below.</p> |
9 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_char"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1011-1013">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_char"·class="fn">as_char</a>(&self)·->·<a·class="primitive"·href="../std/primitive.char.html">char</a></h4></section></summary><div·class="docblock"><p>Returns·the·value·of·this·punctuation·character·as·<code>char</code>.</p> | 9 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.as_char"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1011-1013">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.as_char"·class="fn">as_char</a>(&self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.char.html">char</a></h4></section></summary><div·class="docblock"><p>Returns·the·value·of·this·punctuation·character·as·<code>char</code>.</p> |
10 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.spacing"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1019-1021">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.spacing"·class="fn">spacing</a>(&self)·->·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h4></section></summary><div·class="docblock"><p>Returns·the·spacing·of·this·punctuation·character,·indicating·whether·it·can·be·potentially | 10 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.spacing"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1019-1021">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.spacing"·class="fn">spacing</a>(&self)·->·<a·class="enum"·href="enum.Spacing.html"·title="enum·proc_macro::Spacing">Spacing</a></h4></section></summary><div·class="docblock"><p>Returns·the·spacing·of·this·punctuation·character,·indicating·whether·it·can·be·potentially |
11 | combined·into·a·multi-character·operator·with·the·following·token·(<code>Joint</code>),·or·whether·the | 11 | combined·into·a·multi-character·operator·with·the·following·token·(<code>Joint</code>),·or·whether·the |
12 | operator·has·definitely·ended·(<code>Alone</code>).</p> | 12 | operator·has·definitely·ended·(<code>Alone</code>).</p> |
13 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.span"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1025-1027">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.span"·class="fn">span</a>(&self)·->·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section></summary><div·class="docblock"><p>Returns·the·span·for·this·punctuation·character.</p> | 13 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.span"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1025-1027">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.span"·class="fn">span</a>(&self)·->·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section></summary><div·class="docblock"><p>Returns·the·span·for·this·punctuation·character.</p> |
14 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.set_span"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1031-1033">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.set_span"·class="fn">set_span</a>(&mut·self,·span:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)</h4></section></summary><div·class="docblock"><p>Configure·the·span·for·this·punctuation·character.</p> | 14 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.set_span"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1031-1033">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.set_span"·class="fn">set_span</a>(&mut·self,·span:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)</h4></section></summary><div·class="docblock"><p>Configure·the·span·for·this·punctuation·character.</p> |
15 | </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#950">source</a></span><a·href="#impl-Clone-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#950">source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&self)·->·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&mut·self,·source:·&Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1054-1062">source</a></span><a·href="#impl-Debug-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1055-1061">source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1047-1051">source</a></span><a·href="#impl-Display-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="docblock"><p>Prints·the·punctuation·character·as·a·string·that·should·be·losslessly·convertible | 15 | </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#950">source</a></span><a·href="#impl-Clone-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#950">source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&self)·->·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&mut·self,·source:·&Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1054-1062">source</a></span><a·href="#impl-Debug-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1055-1061">source</a><a·href="#method.fmt-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Display-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1047-1051">source</a></span><a·href="#impl-Display-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="docblock"><p>Prints·the·punctuation·character·as·a·string·that·should·be·losslessly·convertible |
16 | back·into·the·same·character.</p> | 16 | back·into·the·same·character.</p> |
17 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1048-1050">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CPunct%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#744-748">source</a></span><a·href="#impl-From%3CPunct%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a>>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#745-747">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a>)·->·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq%3CPunct%3E-for-char"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.52.0">1.52.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1072-1076">source</a></span><a·href="#impl-PartialEq%3CPunct%3E-for-char"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a><<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a>>·for·<a·class="primitive"·href="../std/primitive.char.html">char</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq-1"·class="method·trait-impl"><a·class="src·rightside"·href="../s | 17 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#1048-1050">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CPunct%3E-for-TokenTree"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#744-748">source</a></span><a·href="#impl-From%3CPunct%3E-for-TokenTree"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a>>·for·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#745-747">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(g:·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a>)·->·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq%3CPunct%3E-for-char"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.52.0">1.52.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1072-1076">source</a></span><a·href="#impl-PartialEq%3CPunct%3E-for-char"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a><<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a>>·for·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.char.html">char</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src[·...·truncated·by·diffoscope;·len:·1158,·SHA:·ba7a2964de551ad4d04bc8a83260aebb82b29e7bfc517bb8e7476b31d946698f·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient, |
18 | and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq%3Cchar%3E-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.50.0">1.50.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1065-1069">source</a></span><a·href="#impl-PartialEq%3Cchar%3E-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a><<a·class="primitive"·href="../std/primitive.char.html">char</a>>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><su | 18 | and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq%3Cchar%3E-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.50.0">1.50.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#1065-1069">source</a></span><a·href="#impl-PartialEq%3Cchar%3E-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a><<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.char.html">char</a>>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><sum[·...·truncated·by·diffoscope;·len:·1252,·SHA:·7cb0faa98d006acafd0023a095175e8587a713f932d7d155c890e8874be9844d·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient, |
19 | and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Send-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#954">source</a></span><a·href="#impl-Send-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section><section·id="impl-Sync-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#956">source</a></span><a·href="#impl-Sync-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Punct"·class="impl"><a·href="#impl-Freeze-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section><section·id="impl-RefUnwindSafe-for-Punct"·class="impl"><a·href="#impl-RefUnwindSafe-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section><section·id="impl-Unpin-for-Punct"·class="impl"><a·href="#impl-Unpin-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section><section·id="impl-UnwindSafe-for-Punct"·class="impl"><a·href="#impl-UnwindSafe-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where | 19 | and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Send-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#954">source</a></span><a·href="#impl-Send-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section><section·id="impl-Sync-for-Punct"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#956">source</a></span><a·href="#impl-Sync-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Punct"·class="impl"><a·href="#impl-Freeze-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section><section·id="impl-RefUnwindSafe-for-Punct"·class="impl"><a·href="#impl-RefUnwindSafe-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section><section·id="impl-Unpin-for-Punct"·class="impl"><a·href="#impl-Unpin-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section><section·id="impl-UnwindSafe-for-Punct"·class="impl"><a·href="#impl-UnwindSafe-for-Punct"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Punct.html"·title="struct·proc_macro::Punct">Punct</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../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="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·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="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·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="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·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="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·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="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where | 22 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where |
23 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p> | 23 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p> |
24 | </div></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<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where | 24 | </div></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<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where |
25 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p> | 25 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p> |
26 | <p>That·is,·this·conversion·is·whatever·the·implementation·of | 26 | <p>That·is,·this·conversion·is·whatever·the·implementation·of |
27 | <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·U</code>·chooses·to·do.</p> | 27 | <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·U</code>·chooses·to·do.</p> |
28 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where | 28 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where |
29 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2555">source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where | 29 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2555">source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where |
30 | ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2561">source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&self)·->·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where | 30 | ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2561">source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&self)·->·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where |
31 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where | 31 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where |
32 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html> | 32 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html> |
Offset 1, 23 lines modified | Offset 1, 23 lines modified | ||
1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="The·source·file·of·a·given·`Span`."><title>SourceFile·in·proc_macro·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec» 2024-10-15)» (built» from» a» source» tarball)</div><h2·class="location"><a·href="#">Source<wbr>File</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.is_real">is_real</a></li><li><a·href="#method.path">path</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-SourceFile">Clone</a></li><li><a·href="#impl-Debug-for-SourceFile">Debug</a></li><li><a·href="#impl-Eq-for-SourceFile">Eq</a></li><li><a·href="#impl-PartialEq-for-SourceFile">PartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Send-for-SourceFile">!Send</a></li><li><a·href="#impl-Sync-for-SourceFile">!Sync</a></li><li><a·href="#impl-Freeze-for-SourceFile">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SourceFile">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-SourceFile">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SourceFile">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a·href="#impl-CloneToUninit-for-T">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into<U></a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom<U></a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li></ul></section><h2><a·href="index.html">In·crate·proc_<wbr>macro</a></h2></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="index.html">proc_macro</a>::<wbr><a·class="struct"·href="#">SourceFile</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><span·class="out-of-band"><a·class="src"·href="../src/proc_macro/lib.rs.html#613">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·SourceFile(<span·class="comment">/*·private·fields·*/</span>);</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·source·file·of·a·given·<code>Span</code>.</p> | 1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="The·source·file·of·a·given·`Span`."><title>SourceFile·in·proc_macro·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec» 2024-10-15)» (built» from» a» source» tarball)</div><h2·class="location"><a·href="#">Source<wbr>File</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.is_real">is_real</a></li><li><a·href="#method.path">path</a></li></ul><h3><a·href="#trait-implementations">Trait·Implementations</a></h3><ul·class="block·trait-implementation"><li><a·href="#impl-Clone-for-SourceFile">Clone</a></li><li><a·href="#impl-Debug-for-SourceFile">Debug</a></li><li><a·href="#impl-Eq-for-SourceFile">Eq</a></li><li><a·href="#impl-PartialEq-for-SourceFile">PartialEq</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Send-for-SourceFile">!Send</a></li><li><a·href="#impl-Sync-for-SourceFile">!Sync</a></li><li><a·href="#impl-Freeze-for-SourceFile">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-SourceFile">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-SourceFile">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-SourceFile">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a·href="#impl-CloneToUninit-for-T">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into<U></a></li><li><a·href="#impl-ToOwned-for-T">ToOwned</a></li><li><a·href="#impl-TryFrom%3CU%3E-for-T">TryFrom<U></a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li></ul></section><h2><a·href="index.html">In·crate·proc_<wbr>macro</a></h2></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="index.html">proc_macro</a>::<wbr><a·class="struct"·href="#">SourceFile</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><span·class="out-of-band"><a·class="src"·href="../src/proc_macro/lib.rs.html#613">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·SourceFile(<span·class="comment">/*·private·fields·*/</span>);</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·source·file·of·a·given·<code>Span</code>.</p> |
2 | </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-SourceFile"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#615-640">source</a><a·href="#impl-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.path"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#627-629">source</a><h4·class="code-header">pub·fn·<a·href="#method.path"·class="fn">path</a>(&self)·->·<a·class="struct"·href="../std/path/struct.PathBuf.html"·title="struct·std::path::PathBuf">PathBuf</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Gets·the·path·to·this·source·file.</p> | 2 | </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-SourceFile"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#615-640">source</a><a·href="#impl-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.path"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#627-629">source</a><h4·class="code-header">pub·fn·<a·href="#method.path"·class="fn">path</a>(&self)·->·<a·class="struct"·href="https://doc.rust-lang.org/1.82.0/std/path/struct.PathBuf.html"·title="struct·std::path::PathBuf">PathBuf</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Gets·the·path·to·this·source·file.</p> |
3 | <h6·id="note"><a·class="doc-anchor"·href="#note">§</a>Note</h6> | 3 | <h6·id="note"><a·class="doc-anchor"·href="#note">§</a>Note</h6> |
4 | <p>If·the·code·span·associated·with·this·<code>SourceFile</code>·was·generated·by·an·external·macro,·this | 4 | <p>If·the·code·span·associated·with·this·<code>SourceFile</code>·was·generated·by·an·external·macro,·this |
5 | macro,·this·might·not·be·an·actual·path·on·the·filesystem.·Use·<a·href="struct.SourceFile.html#method.is_real"·title="method·proc_macro::SourceFile::is_real"><code>is_real</code></a>·to·check.</p> | 5 | macro,·this·might·not·be·an·actual·path·on·the·filesystem.·Use·<a·href="struct.SourceFile.html#method.is_real"·title="method·proc_macro::SourceFile::is_real"><code>is_real</code></a>·to·check.</p> |
6 | <p>Also·note·that·even·if·<code>is_real</code>·returns·<code>true</code>,·if·<code>--remap-path-prefix</code>·was·passed·on | 6 | <p>Also·note·that·even·if·<code>is_real</code>·returns·<code>true</code>,·if·<code>--remap-path-prefix</code>·was·passed·on |
7 | the·command·line,·the·path·as·given·might·not·actually·be·valid.</p> | 7 | the·command·line,·the·path·as·given·might·not·actually·be·valid.</p> |
8 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_real"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#634-639">source</a><h4·class="code-header">pub·fn·<a·href="#method.is_real"·class="fn">is_real</a>(&self)·->·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Returns·<code>true</code>·if·this·source·file·is·a·real·source·file,·and·not·generated·by·an·external | 8 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_real"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#634-639">source</a><h4·class="code-header">pub·fn·<a·href="#method.is_real"·class="fn">is_real</a>(&self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Returns·<code>true</code>·if·this·source·file·is·a·real·source·file,·and·not·generated·by·an·external |
9 | macro’s·expansion.</p> | 9 | macro’s·expansion.</p> |
10 | </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-SourceFile"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#612">source</a><a·href="#impl-Clone-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#612">source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&self)·->·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&mut·self,·source:·&Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-SourceFile"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#643-650">source</a><a·href="#impl-Debug-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#644-649">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-SourceFile"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#653-657">source</a><a·href="#impl-PartialEq-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#654-656">source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&self,·other:·&Self)·->·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class=" | 10 | </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-SourceFile"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#612">source</a><a·href="#impl-Clone-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#612">source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&self)·->·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&mut·self,·source:·&Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-SourceFile"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#643-650">source</a><a·href="#impl-Debug-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#644-649">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-PartialEq-for-SourceFile"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#653-657">source</a><a·href="#impl-PartialEq-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.PartialEq.html"·title="trait·core::cmp::PartialEq">PartialEq</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#654-656">source</a><a·href="#method.eq"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/cmp/trait.PartialEq.html#tymethod.eq"·class="fn">eq</a>(&self,·other:·&Self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>self</code>·and·<code>other</code>·values·to·be·equal,·and·is·used·by·<code>==</code>.</div></details><details·class="toggle·me[·...·truncated·by·diffoscope;·len:·569,·SHA:·0f72f4fd60d70f57b153a987911cb866503d5194076deca85bece549226fa97f·...·]/std/primitive.bool.html">bool</a></h4></section></summary><div·class='docblock'>Tests·for·<code>!=</code>.·The·default·implementation·is·almost·always·sufficient, |
11 | and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-SourceFile"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#660">source</a><a·href="#impl-Eq-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-SourceFile"·class="impl"><a·href="#impl-Freeze-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section><section·id="impl-RefUnwindSafe-for-SourceFile"·class="impl"><a·href="#impl-RefUnwindSafe-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section><section·id="impl-Send-for-SourceFile"·class="impl"><a·href="#impl-Send-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section><section·id="impl-Sync-for-SourceFile"·class="impl"><a·href="#impl-Sync-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section><section·id="impl-Unpin-for-SourceFile"·class="impl"><a·href="#impl-Unpin-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section><section·id="impl-UnwindSafe-for-SourceFile"·class="impl"><a·href="#impl-UnwindSafe-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where | 11 | and·should·not·be·overridden·without·very·good·reason.</div></details></div></details><section·id="impl-Eq-for-SourceFile"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#660">source</a><a·href="#impl-Eq-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/cmp/trait.Eq.html"·title="trait·core::cmp::Eq">Eq</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-SourceFile"·class="impl"><a·href="#impl-Freeze-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section><section·id="impl-RefUnwindSafe-for-SourceFile"·class="impl"><a·href="#impl-RefUnwindSafe-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section><section·id="impl-Send-for-SourceFile"·class="impl"><a·href="#impl-Send-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section><section·id="impl-Sync-for-SourceFile"·class="impl"><a·href="#impl-Sync-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section><section·id="impl-Unpin-for-SourceFile"·class="impl"><a·href="#impl-Unpin-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section><section·id="impl-UnwindSafe-for-SourceFile"·class="impl"><a·href="#impl-UnwindSafe-for-SourceFile"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where |
12 | ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·for·T<div·class="where">where | 12 | ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·for·T<div·class="where">where |
13 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·for·T<div·class="where">where | 13 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·for·T<div·class="where">where |
14 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where | 14 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where |
15 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p> | 15 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·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<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where | 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<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where |
17 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p> | 17 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·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·of | 18 | <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><T>·for·U</code>·chooses·to·do.</p> | 19 | <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·U</code>·chooses·to·do.</p> |
20 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where | 20 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where |
21 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where | 21 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where |
22 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where | 22 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where |
23 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html> | 23 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html> |
Offset 10, 28 lines modified | Offset 10, 28 lines modified | ||
10 | The·span·location·is·taken·from·the·call-site.</p> | 10 | The·span·location·is·taken·from·the·call-site.</p> |
11 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.source_file"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#489-491">source</a><h4·class="code-header">pub·fn·<a·href="#method.source_file"·class="fn">source_file</a>(&self)·->·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>The·original·source·file·into·which·this·span·points.</p> | 11 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.source_file"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#489-491">source</a><h4·class="code-header">pub·fn·<a·href="#method.source_file"·class="fn">source_file</a>(&self)·->·<a·class="struct"·href="struct.SourceFile.html"·title="struct·proc_macro::SourceFile">SourceFile</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>The·original·source·file·into·which·this·span·points.</p> |
12 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.parent"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#496-498">source</a><h4·class="code-header">pub·fn·<a·href="#method.parent"·class="fn">parent</a>(&self)·->·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>The·<code>Span</code>·for·the·tokens·in·the·previous·macro·expansion·from·which | 12 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.parent"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#496-498">source</a><h4·class="code-header">pub·fn·<a·href="#method.parent"·class="fn">parent</a>(&self)·->·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>The·<code>Span</code>·for·the·tokens·in·the·previous·macro·expansion·from·which |
13 | <code>self</code>·was·generated·from,·if·any.</p> | 13 | <code>self</code>·was·generated·from,·if·any.</p> |
14 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.source"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#504-506">source</a><h4·class="code-header">pub·fn·<a·href="#method.source"·class="fn">source</a>(&self)·->·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>The·span·for·the·origin·source·code·that·<code>self</code>·was·generated·from.·If | 14 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.source"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#504-506">source</a><h4·class="code-header">pub·fn·<a·href="#method.source"·class="fn">source</a>(&self)·->·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>The·span·for·the·origin·source·code·that·<code>self</code>·was·generated·from.·If |
15 | this·<code>Span</code>·wasn’t·generated·from·other·macro·expansions·then·the·return | 15 | this·<code>Span</code>·wasn’t·generated·from·other·macro·expansions·then·the·return |
16 | value·is·the·same·as·<code>*self</code>.</p> | 16 | value·is·the·same·as·<code>*self</code>.</p> |
17 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.byte_range"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#510-512">source</a><h4·class="code-header">pub·fn·<a·href="#method.byte_range"·class="fn">byte_range</a>(&self)·->·<a·class="struct"·href="../core/ops/range/struct.Range.html"·title="struct·core::ops::range::Range">Range</a><<a·class="primitive"·href="../std/primitive.usize.html">usize</a>></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·span’s·byte·position·range·in·the·source·file.</p> | 17 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.byte_range"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#510-512">source</a><h4·class="code-header">pub·fn·<a·href="#method.byte_range"·class="fn">byte_range</a>(&self)·->·<a·class="struct"·href="../core/ops/range/struct.Range.html"·title="struct·core::ops::range::Range">Range</a><<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.usize.html">usize</a>></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Returns·the·span’s·byte·position·range·in·the·source·file.</p> |
18 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.start"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#516-518">source</a><h4·class="code-header">pub·fn·<a·href="#method.start"·class="fn">start</a>(&self)·->·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·span·pointing·to·directly·before·this·span.</p> | 18 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.start"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#516-518">source</a><h4·class="code-header">pub·fn·<a·href="#method.start"·class="fn">start</a>(&self)·->·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·span·pointing·to·directly·before·this·span.</p> |
19 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.end"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#522-524">source</a><h4·class="code-header">pub·fn·<a·href="#method.end"·class="fn">end</a>(&self)·->·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·span·pointing·to·directly·after·this·span.</p> | 19 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.end"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#522-524">source</a><h4·class="code-header">pub·fn·<a·href="#method.end"·class="fn">end</a>(&self)·->·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Creates·an·empty·span·pointing·to·directly·after·this·span.</p> |
20 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.line"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#530-532">source</a><h4·class="code-header">pub·fn·<a·href="#method.line"·class="fn">line</a>(&self)·->·<a·class="primitive"·href="../std/primitive.usize.html">usize</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>The·one-indexed·line·of·the·source·file·where·the·span·starts.</p> | 20 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.line"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#530-532">source</a><h4·class="code-header">pub·fn·<a·href="#method.line"·class="fn">line</a>(&self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.usize.html">usize</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>The·one-indexed·line·of·the·source·file·where·the·span·starts.</p> |
21 | <p>To·obtain·the·line·of·the·span’s·end,·use·<code>span.end().line()</code>.</p> | 21 | <p>To·obtain·the·line·of·the·span’s·end,·use·<code>span.end().line()</code>.</p> |
22 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.column"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#538-540">source</a><h4·class="code-header">pub·fn·<a·href="#method.column"·class="fn">column</a>(&self)·->·<a·class="primitive"·href="../std/primitive.usize.html">usize</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>The·one-indexed·column·of·the·source·file·where·the·span·starts.</p> | 22 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.column"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#538-540">source</a><h4·class="code-header">pub·fn·<a·href="#method.column"·class="fn">column</a>(&self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.usize.html">usize</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>The·one-indexed·column·of·the·source·file·where·the·span·starts.</p> |
23 | <p>To·obtain·the·column·of·the·span’s·end,·use·<code>span.end().column()</code>.</p> | 23 | <p>To·obtain·the·column·of·the·span’s·end,·use·<code>span.end().column()</code>.</p> |
24 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.join"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#546-548">source</a><h4·class="code-header">pub·fn·<a·href="#method.join"·class="fn">join</a>(&self,·other:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·->·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·span·encompassing·<code>self</code>·and·<code>other</code>.</p> | 24 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.join"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#546-548">source</a><h4·class="code-header">pub·fn·<a·href="#method.join"·class="fn">join</a>(&self,·other:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·->·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·span·encompassing·<code>self</code>·and·<code>other</code>.</p> |
25 | <p>Returns·<code>None</code>·if·<code>self</code>·and·<code>other</code>·are·from·different·files.</p> | 25 | <p>Returns·<code>None</code>·if·<code>self</code>·and·<code>other</code>·are·from·different·files.</p> |
26 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.resolved_at"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#553-555">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.resolved_at"·class="fn">resolved_at</a>(&self,·other:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·->·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·span·with·the·same·line/column·information·as·<code>self</code>·but | 26 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.resolved_at"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#553-555">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.resolved_at"·class="fn">resolved_at</a>(&self,·other:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·->·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·span·with·the·same·line/column·information·as·<code>self</code>·but |
27 | that·resolves·symbols·as·though·it·were·at·<code>other</code>.</p> | 27 | that·resolves·symbols·as·though·it·were·at·<code>other</code>.</p> |
28 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.located_at"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#560-562">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.located_at"·class="fn">located_at</a>(&self,·other:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·->·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·span·with·the·same·name·resolution·behavior·as·<code>self</code>·but | 28 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.located_at"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.45.0">1.45.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#560-562">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.located_at"·class="fn">located_at</a>(&self,·other:·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·->·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section></summary><div·class="docblock"><p>Creates·a·new·span·with·the·same·name·resolution·behavior·as·<code>self</code>·but |
29 | with·the·line/column·information·of·<code>other</code>.</p> | 29 | with·the·line/column·information·of·<code>other</code>.</p> |
30 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#566-568">source</a><h4·class="code-header">pub·fn·<a·href="#method.eq"·class="fn">eq</a>(&self,·other:·&<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·->·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Compares·two·spans·to·see·if·they’re·equal.</p> | 30 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.eq"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#566-568">source</a><h4·class="code-header">pub·fn·<a·href="#method.eq"·class="fn">eq</a>(&self,·other:·&<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.bool.html">bool</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_span</code> <a·href="https://github.com/rust-lang/rust/issues/54725">#54725</a>)</span></div></span></summary><div·class="docblock"><p>Compares·two·spans·to·see·if·they’re·equal.</p> |
31 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.source_text"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.66.0">1.66.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#578-580">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.source_text"·class="fn">source_text</a>(&self)·->·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>></h4></section></summary><div·class="docblock"><p>Returns·the·source·text·behind·a·span.·This·preserves·the·original·source | 31 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.source_text"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.66.0">1.66.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#578-580">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.source_text"·class="fn">source_text</a>(&self)·->·<a·class="enum"·href="../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>></h4></section></summary><div·class="docblock"><p>Returns·the·source·text·behind·a·span.·This·preserves·the·original·source |
32 | code,·including·spaces·and·comments.·It·only·returns·a·result·if·the·span | 32 | code,·including·spaces·and·comments.·It·only·returns·a·result·if·the·span |
33 | corresponds·to·real·source·code.</p> | 33 | corresponds·to·real·source·code.</p> |
34 | <p>Note:·The·observable·result·of·a·macro·should·only·rely·on·the·tokens·and | 34 | <p>Note:·The·observable·result·of·a·macro·should·only·rely·on·the·tokens·and |
35 | not·on·this·source·text.·The·result·of·this·function·is·a·best·effort·to | 35 | not·on·this·source·text.·The·result·of·this·function·is·a·best·effort·to |
36 | be·used·for·diagnostics·only.</p> | 36 | be·used·for·diagnostics·only.</p> |
37 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.error"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#596">source</a><h4·class="code-header">pub·fn·<a·href="#method.error"·class="fn">error</a><T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>>>(self,·message:·T)·->·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·<code>Diagnostic</code>·with·the·given·<code>message</code>·at·the·span | 37 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.error"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#596">source</a><h4·class="code-header">pub·fn·<a·href="#method.error"·class="fn">error</a><T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>>>(self,·message:·T)·->·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·<code>Diagnostic</code>·with·the·given·<code>message</code>·at·the·span |
Offset 41, 18 lines modified | Offset 41, 18 lines modified | ||
41 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.note"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#598">source</a><h4·class="code-header">pub·fn·<a·href="#method.note"·class="fn">note</a><T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>>>(self,·message:·T)·->·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·<code>Diagnostic</code>·with·the·given·<code>message</code>·at·the·span | 41 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.note"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#598">source</a><h4·class="code-header">pub·fn·<a·href="#method.note"·class="fn">note</a><T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>>>(self,·message:·T)·->·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·<code>Diagnostic</code>·with·the·given·<code>message</code>·at·the·span |
42 | <code>self</code>.</p> | 42 | <code>self</code>.</p> |
43 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.help"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#599">source</a><h4·class="code-header">pub·fn·<a·href="#method.help"·class="fn">help</a><T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>>>(self,·message:·T)·->·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·<code>Diagnostic</code>·with·the·given·<code>message</code>·at·the·span | 43 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.help"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#599">source</a><h4·class="code-header">pub·fn·<a·href="#method.help"·class="fn">help</a><T:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a>>>(self,·message:·T)·->·<a·class="struct"·href="struct.Diagnostic.html"·title="struct·proc_macro::Diagnostic">Diagnostic</a></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span></summary><div·class="docblock"><p>Creates·a·new·<code>Diagnostic</code>·with·the·given·<code>message</code>·at·the·span |
44 | <code>self</code>.</p> | 44 | <code>self</code>.</p> |
45 | </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Span"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#443">source</a></span><a·href="#impl-Clone-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#443">source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&self)·->·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&mut·self,·source:·&Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Span"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#604-608">source</a></span><a·href="#impl-Debug-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section></summary><div·class="docblock"><p>Prints·a·span·in·a·form·convenient·for·debugging.</p> | 45 | </div></details></div></details></div><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-Span"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#443">source</a></span><a·href="#impl-Clone-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#443">source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&self)·->·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../src/core/clone.rs.html#174">source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&mut·self,·source:·&Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Debug-for-Span"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#604-608">source</a></span><a·href="#impl-Debug-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/fmt/trait.Debug.html"·title="trait·core::fmt::Debug">Debug</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section></summary><div·class="docblock"><p>Prints·a·span·in·a·form·convenient·for·debugging.</p> |
46 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#605-607">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-MultiSpan-for-Span"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#26-30">source</a><a·href="#impl-MultiSpan-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.MultiSpan.html"·title="trait·proc_macro::MultiSpan">MultiSpan</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into_spans"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#27-29">source</a><a·href="#method.into_spans"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.MultiSpan.html#tymethod.into_spans"·class="fn">into_spans</a>(self)·->·<a·class="struct"·href="../alloc/vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a><<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><div·class='docblock'>Converts·<code>self</code>·into·a·<code>Vec<Span></code>.</div></details></div></details><section·id="impl-Copy-for-Span"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#443">source</a></span><a·href="#impl-Copy-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section><section·id="impl-Send-for-Span"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#447">source</a></span><a·href="#impl-Send-for-Span"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section><section·id="impl-Sync-for-Span"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#449">source</a></span><a·href="#impl-Sync-for-Span"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Span"·class="impl"><a·href="#impl-Freeze-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section><section·id="impl-RefUnwindSafe-for-Span"·class="impl"><a·href="#impl-RefUnwindSafe-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section><section·id="impl-Unpin-for-Span"·class="impl"><a·href="#impl-Unpin-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section><section·id="impl-UnwindSafe-for-Span"·class="impl"><a·href="#impl-UnwindSafe-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where | 46 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#605-607">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Debug.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-MultiSpan-for-Span"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#26-30">source</a><a·href="#impl-MultiSpan-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="trait.MultiSpan.html"·title="trait·proc_macro::MultiSpan">MultiSpan</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into_spans"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/diagnostic.rs.html#27-29">source</a><a·href="#method.into_spans"·class="anchor">§</a><h4·class="code-header">fn·<a·href="trait.MultiSpan.html#tymethod.into_spans"·class="fn">into_spans</a>(self)·->·<a·class="struct"·href="../alloc/vec/struct.Vec.html"·title="struct·alloc::vec::Vec">Vec</a><<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a>></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_diagnostic</code> <a·href="https://github.com/rust-lang/rust/issues/54140">#54140</a>)</span></div></span><div·class='docblock'>Converts·<code>self</code>·into·a·<code>Vec<Span></code>.</div></details></div></details><section·id="impl-Copy-for-Span"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#443">source</a></span><a·href="#impl-Copy-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section><section·id="impl-Send-for-Span"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#447">source</a></span><a·href="#impl-Send-for-Span"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section><section·id="impl-Sync-for-Span"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#449">source</a></span><a·href="#impl-Sync-for-Span"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-Span"·class="impl"><a·href="#impl-Freeze-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section><section·id="impl-RefUnwindSafe-for-Span"·class="impl"><a·href="#impl-RefUnwindSafe-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section><section·id="impl-Unpin-for-Span"·class="impl"><a·href="#impl-Unpin-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section><section·id="impl-UnwindSafe-for-Span"·class="impl"><a·href="#impl-UnwindSafe-for-Span"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.Span.html"·title="struct·proc_macro::Span">Span</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where |
47 | ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·for·T<div·class="where">where | 47 | ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·for·T<div·class="where">where |
48 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·for·T<div·class="where">where | 48 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·for·T<div·class="where">where |
49 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where | 49 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where |
50 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p> | 50 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·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<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where | 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<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where |
52 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p> | 52 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·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·of | 53 | <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><T>·for·U</code>·chooses·to·do.</p> | 54 | <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·U</code>·chooses·to·do.</p> |
55 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where | 55 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where |
56 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where | 56 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where |
57 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where | 57 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where |
58 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html> | 58 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div></section></div></main></body></html> |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="The·main·type·provided·by·this·crate,·representing·an·abstract·stream·of·tokens,·or,·more·specifically,·a·sequence·of·token·trees.·The·type·provides·interfaces·for·iterating·over·those·token·trees·and,·conversely,·collecting·a·number·of·token·trees·into·one·stream."><title>TokenStream·in·proc_macro·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec» 2024-10-15)» (built» from»a» source» tarball)</div><h2·class="location"><a·href="#">Token<wbr>Stream</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.expand_expr">expand_expr</a></li><li><a·href="#method.is_empty">is_empty</a></li><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-Send-for-TokenStream">!Send</a></li><li><a·href="#impl-Sync-for-TokenStream">!Sync</a></li><li><a·href="#impl-Clone-for-TokenStream">Clone</a></li><li><a·href="#impl-Debug-for-TokenStream">Debug</a></li><li><a·href="#impl-Default-for-TokenStream">Default</a></li><li><a·href="#impl-Display-for-TokenStream">Display</a></li><li><a·href="#impl-Extend%3CTokenStream%3E-for-TokenStream">Extend<TokenStream></a></li><li><a·href="#impl-Extend%3CTokenTree%3E-for-TokenStream">Extend<TokenTree></a></li><li><a·href="#impl-From%3CTokenTree%3E-for-TokenStream">From<TokenTree></a></li><li><a·href="#impl-FromIterator%3CTokenStream%3E-for-TokenStream">FromIterator<TokenStream></a></li><li><a·href="#impl-FromIterator%3CTokenTree%3E-for-TokenStream">FromIterator<TokenTree></a></li><li><a·href="#impl-FromStr-for-TokenStream">FromStr</a></li><li><a·href="#impl-IntoIterator-for-TokenStream">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-TokenStream">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TokenStream">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-TokenStream">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TokenStream">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a·href="#impl-CloneToUninit-for-T">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into<U></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<U></a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li></ul></section><h2><a·href="index.html">In·crate·proc_<wbr>macro</a></h2></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="index.html">proc_macro</a>::<wbr><a·class="struct"·href="#">TokenStream</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#87">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·TokenStream(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·main·type·provided·by·this·crate,·representing·an·abstract·stream·of | 1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="The·main·type·provided·by·this·crate,·representing·an·abstract·stream·of·tokens,·or,·more·specifically,·a·sequence·of·token·trees.·The·type·provides·interfaces·for·iterating·over·those·token·trees·and,·conversely,·collecting·a·number·of·token·trees·into·one·stream."><title>TokenStream·in·proc_macro·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../"·data-static-root-path="../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../proc_macro/index.html"><img·class="rust-logo"·src="../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec» 2024-10-15)» (built» from»a» source» tarball)</div><h2·class="location"><a·href="#">Token<wbr>Stream</a></h2><div·class="sidebar-elems"><section><h3><a·href="#implementations">Methods</a></h3><ul·class="block·method"><li><a·href="#method.expand_expr">expand_expr</a></li><li><a·href="#method.is_empty">is_empty</a></li><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-Send-for-TokenStream">!Send</a></li><li><a·href="#impl-Sync-for-TokenStream">!Sync</a></li><li><a·href="#impl-Clone-for-TokenStream">Clone</a></li><li><a·href="#impl-Debug-for-TokenStream">Debug</a></li><li><a·href="#impl-Default-for-TokenStream">Default</a></li><li><a·href="#impl-Display-for-TokenStream">Display</a></li><li><a·href="#impl-Extend%3CTokenStream%3E-for-TokenStream">Extend<TokenStream></a></li><li><a·href="#impl-Extend%3CTokenTree%3E-for-TokenStream">Extend<TokenTree></a></li><li><a·href="#impl-From%3CTokenTree%3E-for-TokenStream">From<TokenTree></a></li><li><a·href="#impl-FromIterator%3CTokenStream%3E-for-TokenStream">FromIterator<TokenStream></a></li><li><a·href="#impl-FromIterator%3CTokenTree%3E-for-TokenStream">FromIterator<TokenTree></a></li><li><a·href="#impl-FromStr-for-TokenStream">FromStr</a></li><li><a·href="#impl-IntoIterator-for-TokenStream">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-TokenStream">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-TokenStream">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-TokenStream">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-TokenStream">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a·href="#impl-CloneToUninit-for-T">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into<U></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<U></a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li></ul></section><h2><a·href="index.html">In·crate·proc_<wbr>macro</a></h2></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="index.html">proc_macro</a>::<wbr><a·class="struct"·href="#">TokenStream</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#87">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·TokenStream(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>The·main·type·provided·by·this·crate,·representing·an·abstract·stream·of |
2 | tokens,·or,·more·specifically,·a·sequence·of·token·trees. | 2 | tokens,·or,·more·specifically,·a·sequence·of·token·trees. |
3 | The·type·provides·interfaces·for·iterating·over·those·token·trees·and,·conversely, | 3 | The·type·provides·interfaces·for·iterating·over·those·token·trees·and,·conversely, |
4 | collecting·a·number·of·token·trees·into·one·stream.</p> | 4 | collecting·a·number·of·token·trees·into·one·stream.</p> |
5 | <p>This·is·both·the·input·and·output·of·<code>#[proc_macro]</code>,·<code>#[proc_macro_attribute]</code> | 5 | <p>This·is·both·the·input·and·output·of·<code>#[proc_macro]</code>,·<code>#[proc_macro_attribute]</code> |
6 | and·<code>#[proc_macro_derive]</code>·definitions.</p> | 6 | and·<code>#[proc_macro_derive]</code>·definitions.</p> |
7 | </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-TokenStream"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#137-168">source</a><a·href="#impl-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#140-142">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>()·->·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><div·class="docblock"><p>Returns·an·empty·<code>TokenStream</code>·containing·no·token·trees.</p> | 7 | </div></details><h2·id="implementations"·class="section-header">Implementations<a·href="#implementations"·class="anchor">§</a></h2><div·id="implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-TokenStream"·class="impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#137-168">source</a><a·href="#impl-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.new"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#140-142">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.new"·class="fn">new</a>()·->·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><div·class="docblock"><p>Returns·an·empty·<code>TokenStream</code>·containing·no·token·trees.</p> |
8 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_empty"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#146-148">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.is_empty"·class="fn">is_empty</a>(&self)·->·<a·class="primitive"·href="../std/primitive.bool.html">bool</a></h4></section></summary><div·class="docblock"><p>Checks·if·this·<code>TokenStream</code>·is·empty.</p> | 8 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.is_empty"·class="method"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#146-148">source</a></span><h4·class="code-header">pub·fn·<a·href="#method.is_empty"·class="fn">is_empty</a>(&self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.bool.html">bool</a></h4></section></summary><div·class="docblock"><p>Checks·if·this·<code>TokenStream</code>·is·empty.</p> |
9 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.expand_expr"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#161-167">source</a><h4·class="code-header">pub·fn·<a·href="#method.expand_expr"·class="fn">expand_expr</a>(&self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>,·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a>></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_expand</code> <a·href="https://github.com/rust-lang/rust/issues/90765">#90765</a>)</span></div></span></summary><div·class="docblock"><p>Parses·this·<code>TokenStream</code>·as·an·expression·and·attempts·to·expand·any | 9 | </div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.expand_expr"·class="method"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#161-167">source</a><h4·class="code-header">pub·fn·<a·href="#method.expand_expr"·class="fn">expand_expr</a>(&self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>,·<a·class="struct"·href="struct.ExpandError.html"·title="struct·proc_macro::ExpandError">ExpandError</a>></h4></section><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_expand</code> <a·href="https://github.com/rust-lang/rust/issues/90765">#90765</a>)</span></div></span></summary><div·class="docblock"><p>Parses·this·<code>TokenStream</code>·as·an·expression·and·attempts·to·expand·any |
10 | macros·within·it.·Returns·the·expanded·<code>TokenStream</code>.</p> | 10 | macros·within·it.·Returns·the·expanded·<code>TokenStream</code>.</p> |
11 | <p>Currently·only·expressions·expanding·to·literals·will·succeed,·although | 11 | <p>Currently·only·expressions·expanding·to·literals·will·succeed,·although |
12 | this·may·be·relaxed·in·the·future.</p> | 12 | this·may·be·relaxed·in·the·future.</p> |
13 | <p>NOTE:·In·error·conditions,·<code>expand_expr</code>·may·leave·macros·unexpanded, | 13 | <p>NOTE:·In·error·conditions,·<code>expand_expr</code>·may·leave·macros·unexpanded, |
14 | report·an·error,·failing·compilation,·and/or·return·an·<code>Err(..)</code>.·The | 14 | report·an·error,·failing·compilation,·and/or·return·an·<code>Err(..)</code>.·The |
15 | specific·behavior·for·any·error·condition,·and·what·conditions·are | 15 | specific·behavior·for·any·error·condition,·and·what·conditions·are |
Offset 21, 31 lines modified | Offset 21, 31 lines modified | ||
21 | <p>Note:·the·exact·form·of·the·output·is·subject·to·change,·e.g.·there·might | 21 | <p>Note:·the·exact·form·of·the·output·is·subject·to·change,·e.g.·there·might |
22 | be·changes·in·the·whitespace·used·between·tokens.·Therefore,·you·should | 22 | be·changes·in·the·whitespace·used·between·tokens.·Therefore,·you·should |
23 | <em>not</em>·do·any·kind·of·simple·substring·matching·on·the·output·string·(as | 23 | <em>not</em>·do·any·kind·of·simple·substring·matching·on·the·output·string·(as |
24 | produced·by·<code>to_string</code>)·to·implement·a·proc·macro,·because·that·matching | 24 | produced·by·<code>to_string</code>)·to·implement·a·proc·macro,·because·that·matching |
25 | might·stop·working·if·such·changes·happen.·Instead,·you·should·work·at·the | 25 | might·stop·working·if·such·changes·happen.·Instead,·you·should·work·at·the |
26 | <code>TokenTree</code>·level,·e.g.·matching·against·<code>TokenTree::Ident</code>, | 26 | <code>TokenTree</code>·level,·e.g.·matching·against·<code>TokenTree::Ident</code>, |
27 | <code>TokenTree::Punct</code>,·or·<code>TokenTree::Literal</code>.</p> | 27 | <code>TokenTree::Punct</code>,·or·<code>TokenTree::Literal</code>.</p> |
28 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#210-212">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Extend%3CTokenStream%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.30.0">1.30.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#362-369">source</a></span><a·href="#impl-Extend%3CTokenStream%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a><<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.extend-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#363-368">source</a><a·href="#method.extend-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#tymethod.extend"·class="fn">extend</a><I:·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a><Item·=·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>>>(&mut·self,·streams:·I)</h4></section></summary><div·class='docblock'>Extends·a·collection·with·the·contents·of·an·iterator.·<a·href="../core/iter/traits/collect/trait.Extend.html#tymethod.extend">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.extend_one-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/iter/traits/collect.rs.html#454">source</a><a·href="#method.extend_one-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_one"·class="fn">extend_one</a>(&mut·self,·item:·A)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extend_one</code> <a·href="https://github.com/rust-lang/rust/issues/72631">#72631</a>)</span></div></span><div·class='docblock'>Extends·a·collection·with·exactly·one·element.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.extend_reserve-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/iter/traits/collect.rs.html#462">source</a><a·href="#method.extend_reserve-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_reserve"·class="fn">extend_reserve</a>(&mut·self,·additional:·<a·class="primitive"·href="../std/primitive.usize.html">usize</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extend_one</code> <a·hre | 28 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.fmt"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#210-212">source</a><a·href="#method.fmt"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/fmt/trait.Display.html#tymethod.fmt"·class="fn">fmt</a>(&self,·f:·&mut·<a·class="struct"·href="../core/fmt/struct.Formatter.html"·title="struct·core::fmt::Formatter">Formatter</a><'_>)·->·<a·class="type"·href="../core/fmt/type.Result.html"·title="type·core::fmt::Result">Result</a></h4></section></summary><div·class='docblock'>Formats·the·value·using·the·given·formatter.·<a·href="../core/fmt/trait.Display.html#tymethod.fmt">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Extend%3CTokenStream%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.30.0">1.30.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#362-369">source</a></span><a·href="#impl-Extend%3CTokenStream%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a><<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.extend-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#363-368">source</a><a·href="#method.extend-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#tymethod.extend"·class="fn">extend</a><I:·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a><Item·=·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>>>(&mut·self,·streams:·I)</h4></section></summary><div·class='docblock'>Extends·a·collection·with·the·contents·of·an·iterator.·<a·href="../core/iter/traits/collect/trait.Extend.html#tymethod.extend">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.extend_one-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/iter/traits/collect.rs.html#454">source</a><a·href="#method.extend_one-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_one"·class="fn">extend_one</a>(&mut·self,·item:·A)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extend_one</code> <a·href="https://github.com/rust-lang/rust/issues/72631">#72631</a>)</span></div></span><div·class='docblock'>Extends·a·collection·with·exactly·one·element.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.extend_reserve-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/iter/traits/collect.rs.html#462">source</a><a·href="#method.extend_reserve-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_reserve"·class="fn">extend_reserve</a>(&mut·self,·additional:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.usize.html">usize</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extend_one</code> <a·hre[·...·truncated·by·diffoscope;·len:·3167,·SHA:·5f248413590f29f852699910f3bca9a82892ca39f43f1b1f8ba147b8cf74c041·...·]/std/primitive.usize.html">usize</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>extend_one</code> <a·href="https://github.com/rust-lang/rust/issues/72631">#72631</a>)</span></div></span><div·class='docblock'>Reserves·capacity·in·a·collection·for·the·given·number·of·additional·elements.·<a·href="../core/iter/traits/collect/trait.Extend.html#method.extend_reserve">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-From%3CTokenTree%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#247-251">source</a></span><a·href="#impl-From%3CTokenTree%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>Creates·a·token·stream·containing·a·single·token·tree.</p> |
29 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#248-250">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(tree:·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>)·->·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromIterator%3CTokenStream%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#342-349">source</a></span><a·href="#impl-FromIterator%3CTokenStream%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a><<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>A·“flattening”·operation·on·token·streams,·collects·token·trees | 29 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#248-250">source</a><a·href="#method.from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(tree:·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>)·->·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h4></section></summary><div·class='docblock'>Converts·to·this·type·from·the·input·type.</div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromIterator%3CTokenStream%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#342-349">source</a></span><a·href="#impl-FromIterator%3CTokenStream%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a><<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>A·“flattening”·operation·on·token·streams,·collects·token·trees |
30 | from·multiple·token·streams·into·a·single·stream.</p> | 30 | from·multiple·token·streams·into·a·single·stream.</p> |
31 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from_iter-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#343-348">source</a><a·href="#method.from_iter-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter"·class="fn">from_iter</a><I:·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a><Item·=·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>>>(streams:·I)·->·Self</h4></section></summary><div·class='docblock'>Creates·a·value·from·an·iterator.·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromIterator%3CTokenTree%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#330-337">source</a></span><a·href="#impl-FromIterator%3CTokenTree%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a><<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>Collects·a·number·of·token·trees·into·a·single·stream.</p> | 31 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from_iter-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#343-348">source</a><a·href="#method.from_iter-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter"·class="fn">from_iter</a><I:·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a><Item·=·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>>>(streams:·I)·->·Self</h4></section></summary><div·class='docblock'>Creates·a·value·from·an·iterator.·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromIterator%3CTokenTree%3E-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#330-337">source</a></span><a·href="#impl-FromIterator%3CTokenTree%3E-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a><<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>Collects·a·number·of·token·trees·into·a·single·stream.</p> |
32 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from_iter"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#331-336">source</a><a·href="#method.from_iter"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter"·class="fn">from_iter</a><I:·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a><Item·=·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>>>(trees:·I)·->·Self</h4></section></summary><div·class='docblock'>Creates·a·value·from·an·iterator.·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromStr-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#178-184">source</a></span><a·href="#impl-FromStr-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/str/traits/trait.FromStr.html"·title="trait·core::str::traits::FromStr">FromStr</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>Attempts·to·break·the·string·into·tokens·and·parse·those·tokens·into·a·token·stream. | 32 | </div><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from_iter"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#331-336">source</a><a·href="#method.from_iter"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter"·class="fn">from_iter</a><I:·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a><Item·=·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>>>(trees:·I)·->·Self</h4></section></summary><div·class='docblock'>Creates·a·value·from·an·iterator.·<a·href="../core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-FromStr-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#178-184">source</a></span><a·href="#impl-FromStr-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/str/traits/trait.FromStr.html"·title="trait·core::str::traits::FromStr">FromStr</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="docblock"><p>Attempts·to·break·the·string·into·tokens·and·parse·those·tokens·into·a·token·stream. |
33 | May·fail·for·a·number·of·reasons,·for·example,·if·the·string·contains·unbalanced·delimiters | 33 | May·fail·for·a·number·of·reasons,·for·example,·if·the·string·contains·unbalanced·delimiters |
34 | or·characters·not·existing·in·the·language. | 34 | or·characters·not·existing·in·the·language. |
35 | All·tokens·in·the·parsed·stream·get·<code>Span::call_site()</code>·spans.</p> | 35 | All·tokens·in·the·parsed·stream·get·<code>Span::call_site()</code>·spans.</p> |
36 | <p>NOTE:·some·errors·may·cause·panics·instead·of·returning·<code>LexError</code>.·We·reserve·the·right·to | 36 | <p>NOTE:·some·errors·may·cause·panics·instead·of·returning·<code>LexError</code>.·We·reserve·the·right·to |
37 | change·these·errors·into·<code>LexError</code>s·later.</p> | 37 | change·these·errors·into·<code>LexError</code>s·later.</p> |
38 | </div><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Err"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#179">source</a><a·href="#associatedtype.Err"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/str/traits/trait.FromStr.html#associatedtype.Err"·class="associatedtype">Err</a>·=·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h4></section></summary><div·class='docblock'>The·associated·error·which·can·be·returned·from·parsing.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.from_str"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#181-183">source</a><a·href="#method.from_str"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/str/traits/trait.FromStr.html#tymethod.from_str"·class="fn">from_str</a>(src:·&<a·class="primitive"·href="../std/primitive.str.html">str</a>)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>,·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a>></h4></section></summary><div·class='docblock'>Parses·a·string·<code>s</code>·to·return·a·value·of·this·type.·<a·href="../core/str/traits/trait.FromStr.html#tymethod.from_str">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-IntoIterator-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#414-421">source</a></span><a·href="#impl-IntoIterator-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Item"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#415">source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>The·type·of·the·elements·being·iterated·over.</div></details><details·class="toggle"·open><summary><section·id="associatedtype.IntoIter"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#416">source</a><a·href="#associatedtype.IntoIter"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·class="associatedtype">IntoIter</a>·=·<a·class="struct"·href="token_stream/struct.IntoIter.html"·title="struct·proc_macro::token_stream::IntoIter">IntoIter</a></h4></section></summary><div·class='docblock'>Which·kind·of·iterator·are·we·turning·this·into?</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_iter"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#418-420">source</a><a·href="#method.into_iter"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter"·class="fn">into_iter</a>(self)·->·<a·class="struct"·href="token_stream/struct.IntoIter.html"·title="struct·proc_macro::token_stream::IntoIter">IntoIter</a>·<a·href="#"·class="tooltip"·data-notable-ty="IntoIter">ⓘ</a></h4></section></summary><div·class='docblock'>Creates·an·iterator·from·a·value.·<a·href="../core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read·more</a></div></details></div></details><section·id="impl-Send-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#90">source</a></span><a·href="#impl-Send-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section><section·id="impl-Sync-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#92">source</a></span><a·href="#impl-Sync-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TokenStream"·class="impl"><a·href="#impl-Freeze-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section><section·id="impl-RefUnwindSafe-for-TokenStream"·class="impl"><a·href="#impl-RefUnwindSafe-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section><section·id="impl-Unpin-for-TokenStream"·class="impl"><a·href="#impl-Unpin-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section><section·id="impl-UnwindSafe-for-TokenStream"·class="impl"><a·href="#impl-UnwindSafe-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where | 38 | </div><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Err"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#179">source</a><a·href="#associatedtype.Err"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/str/traits/trait.FromStr.html#associatedtype.Err"·class="associatedtype">Err</a>·=·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a></h4></section></summary><div·class='docblock'>The·associated·error·which·can·be·returned·from·parsing.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.from_str"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#181-183">source</a><a·href="#method.from_str"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/str/traits/trait.FromStr.html#tymethod.from_str"·class="fn">from_str</a>(src:·&<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.str.html">str</a>)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a>,·<a·class="struct"·href="struct.LexError.html"·title="struct·proc_macro::LexError">LexError</a>></h4></section></summary><div·class='docblock'>Parses·a·string·<code>s</code>·to·return·a·value·of·this·type.·<a·href="../core/str/traits/trait.FromStr.html#tymethod.from_str">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-IntoIterator-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#414-421">source</a></span><a·href="#impl-IntoIterator-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Item"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#415">source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·<a·class="enum"·href="enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>The·type·of·the·elements·being·iterated·over.</div></details><details·class="toggle"·open><summary><section·id="associatedtype.IntoIter"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#416">source</a><a·href="#associatedtype.IntoIter"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·class="associatedtype">IntoIter</a>·=·<a·class="struct"·href="token_stream/struct.IntoIter.html"·title="struct·proc_macro::token_stream::IntoIter">IntoIter</a></h4></section></summary><div·class='docblock'>Which·kind·of·iterator·are·we·turning·this·into?</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.into_iter"·class="method·trait-impl"><a·class="src·rightside"·href="../src/proc_macro/lib.rs.html#418-420">source</a><a·href="#method.into_iter"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter"·class="fn">into_iter</a>(self)·->·<a·class="struct"·href="token_stream/struct.IntoIter.html"·title="struct·proc_macro::token_stream::IntoIter">IntoIter</a>·<a·href="#"·class="tooltip"·data-notable-ty="IntoIter">ⓘ</a></h4></section></summary><div·class='docblock'>Creates·an·iterator·from·a·value.·<a·href="../core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read·more</a></div></details></div></details><section·id="impl-Send-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#90">source</a></span><a·href="#impl-Send-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Send.html"·title="trait·core::marker::Send">Send</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section><section·id="impl-Sync-for-TokenStream"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../src/proc_macro/lib.rs.html#92">source</a></span><a·href="#impl-Sync-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·!<a·class="trait"·href="../core/marker/trait.Sync.html"·title="trait·core::marker::Sync">Sync</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></div><h2·id="synthetic-implementations"·class="section-header">Auto·Trait·Implementations<a·href="#synthetic-implementations"·class="anchor">§</a></h2><div·id="synthetic-implementations-list"><section·id="impl-Freeze-for-TokenStream"·class="impl"><a·href="#impl-Freeze-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Freeze.html"·title="trait·core::marker::Freeze">Freeze</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section><section·id="impl-RefUnwindSafe-for-TokenStream"·class="impl"><a·href="#impl-RefUnwindSafe-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.RefUnwindSafe.html"·title="trait·core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section><section·id="impl-Unpin-for-TokenStream"·class="impl"><a·href="#impl-Unpin-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/marker/trait.Unpin.html"·title="trait·core::marker::Unpin">Unpin</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section><section·id="impl-UnwindSafe-for-TokenStream"·class="impl"><a·href="#impl-UnwindSafe-for-TokenStream"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../core/panic/unwind_safe/trait.UnwindSafe.html"·title="trait·core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>·for·<a·class="struct"·href="struct.TokenStream.html"·title="struct·proc_macro::TokenStream">TokenStream</a></h3></section></div><h2·id="blanket-implementations"·class="section-header">Blanket·Implementations<a·href="#blanket-implementations"·class="anchor">§</a></h2><div·id="blanket-implementations-list"><details·class="toggle·implementors-toggle"><summary><section·id="impl-Any-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/any.rs.html#138">source</a><a·href="#impl-Any-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/any/trait.Any.html"·title="trait·core::any::Any">Any</a>·for·T<div·class="where">where |
39 | ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·for·T<div·class="where">where | 39 | ····T:·'static·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.type_id"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/any.rs.html#139">source</a><a·href="#method.type_id"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/any/trait.Any.html#tymethod.type_id"·class="fn">type_id</a>(&self)·->·<a·class="struct"·href="../core/any/struct.TypeId.html"·title="struct·core::any::TypeId">TypeId</a></h4></section></summary><div·class='docblock'>Gets·the·<code>TypeId</code>·of·<code>self</code>.·<a·href="../core/any/trait.Any.html#tymethod.type_id">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-Borrow%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#209">source</a><a·href="#impl-Borrow%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.Borrow.html"·title="trait·core::borrow::Borrow">Borrow</a><T>·for·T<div·class="where">where |
40 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·for·T<div·class="where">where | 40 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#211">source</a><a·href="#method.borrow"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow"·class="fn">borrow</a>(&self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&T</a></h4></section></summary><div·class='docblock'>Immutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.Borrow.html#tymethod.borrow">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-BorrowMut%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#217">source</a><a·href="#impl-BorrowMut%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/borrow/trait.BorrowMut.html"·title="trait·core::borrow::BorrowMut">BorrowMut</a><T>·for·T<div·class="where">where |
41 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where | 41 | ····T:·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.borrow_mut"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/borrow.rs.html#218">source</a><a·href="#method.borrow_mut"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"·class="fn">borrow_mut</a>(&mut·self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a></h4></section></summary><div·class='docblock'>Mutably·borrows·from·an·owned·value.·<a·href="../core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-CloneToUninit-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#273">source</a><a·href="#impl-CloneToUninit-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/clone/trait.CloneToUninit.html"·title="trait·core::clone::CloneToUninit">CloneToUninit</a>·for·T<div·class="where">where |
42 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="../std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·T</h4></section></summary><div·class="docblock"><p>Returns·the·argument·unchanged.</p> | 42 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_to_uninit"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/clone.rs.html#275">source</a><a·href="#method.clone_to_uninit"·class="anchor">§</a><h4·class="code-header">unsafe·fn·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit"·class="fn">clone_to_uninit</a>(&self,·dst:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.pointer.html">*mut·T</a>)</h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>clone_to_uninit</code> <a·href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div·class='docblock'>Performs·copy-assignment·from·<code>self</code>·to·<code>dst</code>.·<a·href="../core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-From%3CT%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#765">source</a><a·href="#impl-From%3CT%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·T</h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.from-1"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#768">source</a><a·href="#method.from-1"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.From.html#tymethod.from"·class="fn">from</a>(t:·T)·->·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<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where | 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<T,·U>·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><U>·for·T<div·class="where">where |
44 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·U</h4></section></summary><div·class="docblock"><p>Calls·<code>U::from(self)</code>.</p> | 44 | ····U:·<a·class="trait"·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#758">source</a><a·href="#method.into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.Into.html#tymethod.into"·class="fn">into</a>(self)·->·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·of | 45 | <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><T>·for·U</code>·chooses·to·do.</p> | 46 | <code><a·href="../core/convert/trait.From.html"·title="trait·core::convert::From">From</a><T>·for·U</code>·chooses·to·do.</p> |
47 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where | 47 | </div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToOwned-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#82-84">source</a><a·href="#impl-ToOwned-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/borrow/trait.ToOwned.html"·title="trait·alloc::borrow::ToOwned">ToOwned</a>·for·T<div·class="where">where |
48 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="../std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2555">source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where | 48 | ····T:·<a·class="trait"·href="../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Owned"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#86">source</a><a·href="#associatedtype.Owned"·class="anchor">§</a><h4·class="code-header">type·<a·href="../alloc/borrow/trait.ToOwned.html#associatedtype.Owned"·class="associatedtype">Owned</a>·=·T</h4></section></summary><div·class='docblock'>The·resulting·type·after·obtaining·ownership.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.to_owned"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#87">source</a><a·href="#method.to_owned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned"·class="fn">to_owned</a>(&self)·->·T</h4></section></summary><div·class='docblock'>Creates·owned·data·from·borrowed·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/borrow.rs.html#91">source</a><a·href="#method.clone_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into"·class="fn">clone_into</a>(&self,·target:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·T</a>)</h4></section></summary><div·class='docblock'>Uses·borrowed·data·to·replace·owned·data,·usually·by·cloning.·<a·href="../alloc/borrow/trait.ToOwned.html#method.clone_into">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-ToString-for-T"·class="impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2555">source</a><a·href="#impl-ToString-for-T"·class="anchor">§</a><h3·class="code-header">impl<T>·<a·class="trait"·href="../alloc/string/trait.ToString.html"·title="trait·alloc::string::ToString">ToString</a>·for·T<div·class="where">where |
49 | ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2561">source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&self)·->·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where | 49 | ····T:·<a·class="trait"·href="../core/fmt/trait.Display.html"·title="trait·core::fmt::Display">Display</a>·+·?<a·class="trait"·href="../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.to_string"·class="method·trait-impl"><a·class="src·rightside"·href="../src/alloc/string.rs.html#2561">source</a><a·href="#method.to_string"·class="anchor">§</a><h4·class="code-header">default·fn·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string"·class="fn">to_string</a>(&self)·->·<a·class="struct"·href="../alloc/string/struct.String.html"·title="struct·alloc::string::String">String</a></h4></section></summary><div·class='docblock'>Converts·the·given·value·to·a·<code>String</code>.·<a·href="../alloc/string/trait.ToString.html#tymethod.to_string">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryFrom%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#805-807">source</a><a·href="#impl-TryFrom%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>·for·T<div·class="where">where |
50 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where | 50 | ····U:·<a·class="trait"·href="../core/convert/trait.Into.html"·title="trait·core::convert::Into">Into</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error-1"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#809">source</a><a·href="#associatedtype.Error-1"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<a·class="enum"·href="../core/convert/enum.Infallible.html"·title="enum·core::convert::Infallible">Infallible</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_from"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#812">source</a><a·href="#method.try_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryFrom.html#tymethod.try_from"·class="fn">try_from</a>(value:·U)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><T,·<T·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><U>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details><details·class="toggle·implementors-toggle"><summary><section·id="impl-TryInto%3CU%3E-for-T"·class="impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#790-792">source</a><a·href="#impl-TryInto%3CU%3E-for-T"·class="anchor">§</a><h3·class="code-header">impl<T,·U>·<a·class="trait"·href="../core/convert/trait.TryInto.html"·title="trait·core::convert::TryInto">TryInto</a><U>·for·T<div·class="where">where |
51 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div><script·type="text/json"·id="notable-traits-data">{"IntoIter":"<h3>Notable·traits·for·<code><a·class=\"struct\"·href=\"token_stream/struct.IntoIter.html\"·title=\"struct·proc_macro::token_stream::IntoIter\">IntoIter</a></code></h3><pre><code><div·class=\"where\">impl·<a·class=\"trait\"·href=\"../core/iter/traits/iterator/trait.Iterator.html\"·title=\"trait·core::iter::traits::iterator::Iterator\">Iterator</a>·for·<a·class=\"struct\"·href=\"token_stream/struct.IntoIter.html\"·title=\"struct·proc_macro::token_stream::IntoIter\">IntoIter</a></div><div·class=\"where\">····type·<a·href=\"../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\"·class=\"associatedtype\">Item</a>·=·<a·class=\"enum\"·href=\"enum.TokenTree.html\"·title=\"enum·proc_macro::TokenTree\">TokenTree</a>;</div>"}</script></section></div></main></body></html> | 51 | ····U:·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Error"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#794">source</a><a·href="#associatedtype.Error"·class="anchor">§</a><h4·class="code-header">type·<a·href="../core/convert/trait.TryInto.html#associatedtype.Error"·class="associatedtype">Error</a>·=·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a></h4></section></summary><div·class='docblock'>The·type·returned·in·the·event·of·a·conversion·error.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_into"·class="method·trait-impl"><a·class="src·rightside"·href="../src/core/convert/mod.rs.html#797">source</a><a·href="#method.try_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../core/convert/trait.TryInto.html#tymethod.try_into"·class="fn">try_into</a>(self)·->·<a·class="enum"·href="../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><U,·<U·as·<a·class="trait"·href="../core/convert/trait.TryFrom.html"·title="trait·core::convert::TryFrom">TryFrom</a><T>>::<a·class="associatedtype"·href="../core/convert/trait.TryFrom.html#associatedtype.Error"·title="type·core::convert::TryFrom::Error">Error</a>></h4></section></summary><div·class='docblock'>Performs·the·conversion.</div></details></div></details></div><script·type="text/json"·id="notable-traits-data">{"IntoIter":"<h3>Notable·traits·for·<code><a·class=\"struct\"·href=\"token_stream/struct.IntoIter.html\"·title=\"struct·proc_macro::token_stream::IntoIter\">IntoIter</a></code></h3><pre><code><div·class=\"where\">impl·<a·class=\"trait\"·href=\"../core/iter/traits/iterator/trait.Iterator.html\"·title=\"trait·core::iter::traits::iterator::Iterator\">Iterator</a>·for·<a·class=\"struct\"·href=\"token_stream/struct.IntoIter.html\"·title=\"struct·proc_macro::token_stream::IntoIter\">IntoIter</a></div><div·class=\"where\">····type·<a·href=\"../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\"·class=\"associatedtype\">Item</a>·=·<a·class=\"enum\"·href=\"enum.TokenTree.html\"·title=\"enum·proc_macro::TokenTree\">TokenTree</a>;</div>"}</script></section></div></main></body></html> |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="An·iterator·over·`TokenStream`’s·`TokenTree`s.·The·iteration·is·“shallow”,·e.g.,·the·iterator·doesn’t·recurse·into·delimited·groups,·and·returns·whole·groups·as·token·trees."><title>IntoIter·in·proc_macro::token_stream·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec» 2024-10-15)» (built» from» a» source» tarball)</div><h2·class="location"><a·href="#">Into<wbr>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-IntoIter">Clone</a></li><li><a·href="#impl-Iterator-for-IntoIter">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Send-for-IntoIter">!Send</a></li><li><a·href="#impl-Sync-for-IntoIter">!Sync</a></li><li><a·href="#impl-Freeze-for-IntoIter">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-IntoIter">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a·href="#impl-CloneToUninit-for-T">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into<U></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<U></a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li></ul></section><h2><a·href="index.html">In·proc_<wbr>macro::<wbr>token_<wbr>stream</a></h2></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">proc_macro</a>::<wbr><a·href="index.html">token_stream</a>::<wbr><a·class="struct"·href="#">IntoIter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../../src/proc_macro/lib.rs.html#381-389">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·IntoIter(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·<code>TokenStream</code>’s·<code>TokenTree</code>s. | 1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="An·iterator·over·`TokenStream`’s·`TokenTree`s.·The·iteration·is·“shallow”,·e.g.,·the·iterator·doesn’t·recurse·into·delimited·groups,·and·returns·whole·groups·as·token·trees."><title>IntoIter·in·proc_macro::token_stream·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link·rel="icon"·type="image/svg+xml"·href="../../static.files/favicon-2c020d218678b618.svg"></head><body·class="rustdoc·struct"><!--[if·lte·IE·11]><div·class="warning">This·old·browser·is·unsupported·and·will·most·likely·display·funky·things.</div><![endif]--><nav·class="mobile-topbar"><button·class="sidebar-menu-toggle"·title="show·sidebar"></button><a·class="logo-container"·href="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec» 2024-10-15)» (built» from» a» source» tarball)</div><h2·class="location"><a·href="#">Into<wbr>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-IntoIter">Clone</a></li><li><a·href="#impl-Iterator-for-IntoIter">Iterator</a></li></ul><h3><a·href="#synthetic-implementations">Auto·Trait·Implementations</a></h3><ul·class="block·synthetic-implementation"><li><a·href="#impl-Send-for-IntoIter">!Send</a></li><li><a·href="#impl-Sync-for-IntoIter">!Sync</a></li><li><a·href="#impl-Freeze-for-IntoIter">Freeze</a></li><li><a·href="#impl-RefUnwindSafe-for-IntoIter">RefUnwindSafe</a></li><li><a·href="#impl-Unpin-for-IntoIter">Unpin</a></li><li><a·href="#impl-UnwindSafe-for-IntoIter">UnwindSafe</a></li></ul><h3><a·href="#blanket-implementations">Blanket·Implementations</a></h3><ul·class="block·blanket-implementation"><li><a·href="#impl-Any-for-T">Any</a></li><li><a·href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a·href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a·href="#impl-CloneToUninit-for-T">CloneToUninit</a></li><li><a·href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a·href="#impl-Into%3CU%3E-for-T">Into<U></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<U></a></li><li><a·href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li></ul></section><h2><a·href="index.html">In·proc_<wbr>macro::<wbr>token_<wbr>stream</a></h2></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Struct·<a·href="../index.html">proc_macro</a>::<wbr><a·href="index.html">token_stream</a>::<wbr><a·class="struct"·href="#">IntoIter</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><span·class="out-of-band"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../../src/proc_macro/lib.rs.html#381-389">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·struct·IntoIter(<span·class="comment">/*·private·fields·*/</span>);</code></pre><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>An·iterator·over·<code>TokenStream</code>’s·<code>TokenTree</code>s. |
2 | The·iteration·is·“shallow”,·e.g.,·the·iterator·doesn’t·recurse·into·delimited·groups, | 2 | The·iteration·is·“shallow”,·e.g.,·the·iterator·doesn’t·recurse·into·delimited·groups, |
3 | and·returns·whole·groups·as·token·trees.</p> | 3 | and·returns·whole·groups·as·token·trees.</p> |
4 | </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-IntoIter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../../src/proc_macro/lib.rs.html#379">source</a></span><a·href="#impl-Clone-for-IntoIter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.IntoIter.html"·title="struct·proc_macro::token_stream::IntoIter">IntoIter</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/proc_macro/lib.rs.html#379">source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&self)·->·<a·class="struct"·href="struct.IntoIter.html"·title="struct·proc_macro::token_stream::IntoIter">IntoIter</a>·<a·href="#"·class="tooltip"·data-notable-ty="IntoIter">ⓘ</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&mut·self,·source:·&Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Iterator-for-IntoIter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../../src/proc_macro/lib.rs.html#392-411">source</a></span><a·href="#impl-Iterator-for-IntoIter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.IntoIter.html"·title="struct·proc_macro::token_stream::IntoIter">IntoIter</a></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Item"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/proc_macro/lib.rs.html#393">source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·<a·class="enum"·href="../enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>The·type·of·the·elements·being·iterated·over.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/proc_macro/lib.rs.html#395-402">source</a><a·href="#method.next"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#tymethod.next"·class="fn">next</a>(&mut·self)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><<a·class="enum"·href="../enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>></h4></section></summary><div·class='docblock'>Advances·the·iterator·and·returns·the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#tymethod.next">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.size_hint"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/proc_macro/lib.rs.html#404-406">source</a><a·href="#method.size_hint"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.size_hint"·class="fn">size_hint</a>(&self)·->·(<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>,·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><<a·class="primitive"·href=" | 4 | </div></details><h2·id="trait-implementations"·class="section-header">Trait·Implementations<a·href="#trait-implementations"·class="anchor">§</a></h2><div·id="trait-implementations-list"><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Clone-for-IntoIter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../../src/proc_macro/lib.rs.html#379">source</a></span><a·href="#impl-Clone-for-IntoIter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>·for·<a·class="struct"·href="struct.IntoIter.html"·title="struct·proc_macro::token_stream::IntoIter">IntoIter</a></h3></section></summary><div·class="impl-items"><details·class="toggle·method-toggle"·open><summary><section·id="method.clone"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/proc_macro/lib.rs.html#379">source</a><a·href="#method.clone"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·class="fn">clone</a>(&self)·->·<a·class="struct"·href="struct.IntoIter.html"·title="struct·proc_macro::token_stream::IntoIter">IntoIter</a>·<a·href="#"·class="tooltip"·data-notable-ty="IntoIter">ⓘ</a></h4></section></summary><div·class='docblock'>Returns·a·copy·of·the·value.·<a·href="../../core/clone/trait.Clone.html#tymethod.clone">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.clone_from"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/clone.rs.html#174">source</a></span><a·href="#method.clone_from"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/clone/trait.Clone.html#method.clone_from"·class="fn">clone_from</a>(&mut·self,·source:·&Self)</h4></section></summary><div·class='docblock'>Performs·copy-assignment·from·<code>source</code>.·<a·href="../../core/clone/trait.Clone.html#method.clone_from">Read·more</a></div></details></div></details><details·class="toggle·implementors-toggle"·open><summary><section·id="impl-Iterator-for-IntoIter"·class="impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.29.0">1.29.0</span>···<a·class="src"·href="../../src/proc_macro/lib.rs.html#392-411">source</a></span><a·href="#impl-Iterator-for-IntoIter"·class="anchor">§</a><h3·class="code-header">impl·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a>·for·<a·class="struct"·href="struct.IntoIter.html"·title="struct·proc_macro::token_stream::IntoIter">IntoIter</a></h3></section></summary><div·class="impl-items"><details·class="toggle"·open><summary><section·id="associatedtype.Item"·class="associatedtype·trait-impl"><a·class="src·rightside"·href="../../src/proc_macro/lib.rs.html#393">source</a><a·href="#associatedtype.Item"·class="anchor">§</a><h4·class="code-header">type·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·class="associatedtype">Item</a>·=·<a·class="enum"·href="../enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a></h4></section></summary><div·class='docblock'>The·type·of·the·elements·being·iterated·over.</div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.next"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/proc_macro/lib.rs.html#395-402">source</a><a·href="#method.next"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#tymethod.next"·class="fn">next</a>(&mut·self)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><<a·class="enum"·href="../enum.TokenTree.html"·title="enum·proc_macro::TokenTree">TokenTree</a>></h4></section></summary><div·class='docblock'>Advances·the·iterator·and·returns·the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#tymethod.next">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.size_hint"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/proc_macro/lib.rs.html#404-406">source</a><a·href="#method.size_hint"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.size_hint"·class="fn">size_hint</a>(&self)·->·(<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.usize.html">usize</a>,·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.usize.[·...·truncated·by·diffoscope;·len:·1380,·SHA:·7821e74b71e13fe06bef57f528fc76f8b4ae35d485488f4c51525c3be643517a·...·]/std/primitive.usize.html">usize</a>>( |
5 | ····&mut·self, | 5 | ····&mut·self, |
6 | )·->·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>;·<a·class="primitive"·href="../../std/primitive.array.html">N</a>],·<a·class="struct"·href="../../core/array/iter/struct.IntoIter.html"·title="struct·core::array::iter::IntoIter">IntoIter</a><Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N>><div·class="where">where | 6 | )·->·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>;·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.array.html">N</a>],·<a·class="struct"·href="../../core/array/iter/struct.IntoIter.html"·title="struct·core::array::iter::IntoIter">IntoIter</a><Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·N>><div·class="where">where |
7 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_chunk</code> <a·href="https://github.com/rust-lang/rust/issues/98326">#98326</a>)</span></div></span><div·class='docblock'>Advances·the·iterator·and·returns·an·array·containing·the·next·<code>N</code>·values.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.next_chunk">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.last"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#253-255">source</a></span><a·href="#method.last"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last"·class="fn">last</a>(self)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><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·class="where">where | 7 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_next_chunk</code> <a·href="https://github.com/rust-lang/rust/issues/98326">#98326</a>)</span></div></span><div·class='docblock'>Advances·the·iterator·and·returns·an·array·containing·the·next·<code>N</code>·values.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.next_chunk">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.last"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#253-255">source</a></span><a·href="#method.last"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last"·class="fn">last</a>(self)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><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·class="where">where |
8 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.advance_by"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#301">source</a><a·href="#method.advance_by"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.advance_by"·class="fn">advance_by</a>(&mut·self,·n:·<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>)·->·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><<a·class="primitive"·href=" | 8 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Consumes·the·iterator,·returning·the·last·element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.last">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.advance_by"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#301">source</a><a·href="#method.advance_by"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.advance_by"·class="fn">advance_by</a>(&mut·self,·n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.usize.html">usize</a>)·->·<a·class="enum"·href="../../core/result/enum.Result.html"·title="enum·core::result::Result">Result</a><<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.[·...·truncated·by·diffoscope;·len:·2307,·SHA:·0802ccc037e514bda3e4e9725694be28407342269d6c8d73bffd5f7b4ec772e9·...·]/std/primitive.usize.html">usize</a>)·->·<a·class="struct"·href="../../core/iter/adapters/step_by/struct.StepBy.html"·title="struct·core::iter::adapters::step_by::StepBy">StepBy</a><Self><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·by | 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·by |
10 | the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#476-479">source</a></span><a·href="#method.chain"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.chain"·class="fn">chain</a><U>(self,·other:·U)·->·<a·class="struct"·href="../../core/iter/adapters/chain/struct.Chain.html"·title="struct·core::iter::adapters::chain::Chain">Chain</a><Self,·<U·as·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<a·class="associatedtype"·href="../../core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>><div·class="where">where | 10 | the·given·amount·at·each·iteration.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.chain"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#476-479">source</a></span><a·href="#method.chain"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.chain"·class="fn">chain</a><U>(self,·other:·U)·->·<a·class="struct"·href="../../core/iter/adapters/chain/struct.Chain.html"·title="struct·core::iter::adapters::chain::Chain">Chain</a><Self,·<U·as·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<a·class="associatedtype"·href="../../core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>><div·class="where">where |
11 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 11 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
12 | ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a><Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>>,</div></h4></section></summary><div·class='docblock'>Takes·two·iterators·and·creates·a·new·iterator·over·both·in·sequence.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.chain">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.zip"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#595-598">source</a></span><a·href="#method.zip"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.zip"·class="fn">zip</a><U>(self,·other:·U)·->·<a·class="struct"·href="../../core/iter/adapters/zip/struct.Zip.html"·title="struct·core::iter::adapters::zip::Zip">Zip</a><Self,·<U·as·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<a·class="associatedtype"·href="../../core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>><div·class="where">where | 12 | ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a><Item·=·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>>,</div></h4></section></summary><div·class='docblock'>Takes·two·iterators·and·creates·a·new·iterator·over·both·in·sequence.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.chain">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.zip"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#595-598">source</a></span><a·href="#method.zip"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.zip"·class="fn">zip</a><U>(self,·other:·U)·->·<a·class="struct"·href="../../core/iter/adapters/zip/struct.Zip.html"·title="struct·core::iter::adapters::zip::Zip">Zip</a><Self,·<U·as·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<a·class="associatedtype"·href="../../core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"·title="type·core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>><div·class="where">where |
13 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 13 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
14 | ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.zip">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#638-641">source</a><a·href="#method.intersperse"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse"·class="fn">intersperse</a>(self,·separator:·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="struct"·href="../../core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a><Self><div·class="where">where | 14 | ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div·class='docblock'>‘Zips·up’·two·iterators·into·a·single·iterator·of·pairs.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.zip">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.intersperse"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#638-641">source</a><a·href="#method.intersperse"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse"·class="fn">intersperse</a>(self,·separator:·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="struct"·href="../../core/iter/adapters/intersperse/struct.Intersperse.html"·title="struct·core::iter::adapters::intersperse::Intersperse">Intersperse</a><Self><div·class="where">where |
15 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 15 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
Offset 20, 117 lines modified | Offset 20, 117 lines modified | ||
20 | between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#757-760">source</a></span><a·href="#method.map"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map"·class="fn">map</a><B,·F>(self,·f:·F)·->·<a·class="struct"·href="../../core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a><Self,·F><div·class="where">where | 20 | between·adjacent·items·of·the·original·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#757-760">source</a></span><a·href="#method.map"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map"·class="fn">map</a><B,·F>(self,·f:·F)·->·<a·class="struct"·href="../../core/iter/adapters/map/struct.Map.html"·title="struct·core::iter::adapters::map::Map">Map</a><Self,·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="../../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>)·->·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each | 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>)·->·B,</div></h4></section></summary><div·class='docblock'>Takes·a·closure·and·creates·an·iterator·which·calls·that·closure·on·each |
23 | element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.21.0">1.21.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#803-806">source</a></span><a·href="#method.for_each"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a><F>(self,·f:·F)<div·class="where">where | 23 | element.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.21.0">1.21.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#803-806">source</a></span><a·href="#method.for_each"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.for_each"·class="fn">for_each</a><F>(self,·f:·F)<div·class="where">where |
24 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 24 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
25 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>),</div></h4></section></summary><div·class='docblock'>Calls·a·closure·on·each·element·of·an·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#879-882">source</a></span><a·href="#method.filter"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter"·class="fn">filter</a><P>(self,·predicate:·P)·->·<a·class="struct"·href="../../core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a><Self,·P><div·class="where">where | 25 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>),</div></h4></section></summary><div·class='docblock'>Calls·a·closure·on·each·element·of·an·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#879-882">source</a></span><a·href="#method.filter"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter"·class="fn">filter</a><P>(self,·predicate:·P)·->·<a·class="struct"·href="../../core/iter/adapters/filter/struct.Filter.html"·title="struct·core::iter::adapters::filter::Filter">Filter</a><Self,·P><div·class="where">where |
26 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 26 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
27 | ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element | 27 | ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·uses·a·closure·to·determine·if·an·element |
28 | should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#925-928">source</a></span><a·href="#method.filter_map"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter_map"·class="fn">filter_map</a><B,·F>(self,·f:·F)·->·<a·class="struct"·href="../../core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a><Self,·F><div·class="where">where | 28 | should·be·yielded.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.filter_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#925-928">source</a></span><a·href="#method.filter_map"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter_map"·class="fn">filter_map</a><B,·F>(self,·f:·F)·->·<a·class="struct"·href="../../core/iter/adapters/filter_map/struct.FilterMap.html"·title="struct·core::iter::adapters::filter_map::FilterMap">FilterMap</a><Self,·F><div·class="where">where |
29 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 29 | ····Self:·<a·class="trait"·href="../../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>)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><B>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·both·filters·and·maps.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.enumerate"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#973-975">source</a></span><a·href="#method.enumerate"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate"·class="fn">enumerate</a>(self)·->·<a·class="struct"·href="../../core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a><Self><div·class="where">where | 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>)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><B>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·both·filters·and·maps.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.filter_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.enumerate"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#973-975">source</a></span><a·href="#method.enumerate"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate"·class="fn">enumerate</a>(self)·->·<a·class="struct"·href="../../core/iter/adapters/enumerate/struct.Enumerate.html"·title="struct·core::iter::adapters::enumerate::Enumerate">Enumerate</a><Self><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·as | 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·as |
32 | the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1045-1047">source</a></span><a·href="#method.peekable"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable"·class="fn">peekable</a>(self)·->·<a·class="struct"·href="../../core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a><Self><div·class="where">where | 32 | the·next·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.peekable"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1045-1047">source</a></span><a·href="#method.peekable"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable"·class="fn">peekable</a>(self)·->·<a·class="struct"·href="../../core/iter/adapters/peekable/struct.Peekable.html"·title="struct·core::iter::adapters::peekable::Peekable">Peekable</a><Self><div·class="where">where |
33 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="method·core::iter::adapters::peekable::Peekable::peek"><code>peek</code></a>·and·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods | 33 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·can·use·the·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek"·title="method·core::iter::adapters::peekable::Peekable::peek"><code>peek</code></a>·and·<a·href="../../core/iter/adapters/peekable/struct.Peekable.html#method.peek_mut"·title="method·core::iter::adapters::peekable::Peekable::peek_mut"><code>peek_mut</code></a>·methods |
34 | to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See | 34 | to·look·at·the·next·element·of·the·iterator·without·consuming·it.·See |
35 | their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1111-1114">source</a></span><a·href="#method.skip_while"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.skip_while"·class="fn">skip_while</a><P>(self,·predicate:·P)·->·<a·class="struct"·href="../../core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a><Self,·P><div·class="where">where | 35 | their·documentation·for·more·information.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1111-1114">source</a></span><a·href="#method.skip_while"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.skip_while"·class="fn">skip_while</a><P>(self,·predicate:·P)·->·<a·class="struct"·href="../../core/iter/adapters/skip_while/struct.SkipWhile.html"·title="struct·core::iter::adapters::skip_while::SkipWhile">SkipWhile</a><Self,·P><div·class="where">where |
36 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 36 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
37 | ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.skip"·title="method·core::iter::traits::iterator::Iterator::skip"><code>skip</code></a>s·elements·based·on·a·predicate.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.skip_while">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.take_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1193-1196">source</a></span><a·href="#method.take_while"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take_while"·class="fn">take_while</a><P>(self,·predicate:·P)·->·<a·class="struct"·href="../../core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a><Self,·P><div·class="where">where | 37 | ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.skip"·title="method·core::iter::traits::iterator::Iterator::skip"><code>skip</code></a>s·elements·based·on·a·predicate.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.skip_while">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.take_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1193-1196">source</a></span><a·href="#method.take_while"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take_while"·class="fn">take_while</a><P>(self,·predicate:·P)·->·<a·class="struct"·href="../../core/iter/adapters/take_while/struct.TakeWhile.html"·title="struct·core::iter::adapters::take_while::TakeWhile">TakeWhile</a><Self,·P><div·class="where">where |
38 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 38 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
39 | ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·elements·based·on·a·predicate.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take_while">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.57.0">1.57.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1282-1285">source</a></span><a·href="#method.map_while"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_while"·class="fn">map_while</a><B,·P>(self,·predicate:·P)·->·<a·class="struct"·href="../../core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a><Self,·P><div·class="where">where | 39 | ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·yields·elements·based·on·a·predicate.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take_while">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map_while"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.57.0">1.57.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1282-1285">source</a></span><a·href="#method.map_while"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_while"·class="fn">map_while</a><B,·P>(self,·predicate:·P)·->·<a·class="struct"·href="../../core/iter/adapters/map_while/struct.MapWhile.html"·title="struct·core::iter::adapters::map_while::MapWhile">MapWhile</a><Self,·P><div·class="where">where |
40 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 40 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
41 | ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><B>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·both·yields·elements·based·on·a·predicate·and·maps.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_while">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1312-1314">source</a></span><a·href="#method.skip"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.skip"·class="fn">skip</a>(self,·n:·<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>)·->·<a·class="struct"·href="../../core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a><Self><div·class="where">where | 41 | ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><B>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·both·yields·elements·based·on·a·predicate·and·maps.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_while">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.skip"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1312-1314">source</a></span><a·href="#method.skip"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.skip"·class="fn">skip</a>(self,·n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.usize.html">usize</a>)·->·<a·class="struct"·href="../../core/iter/adapters/skip/struct.Skip.html"·title="struct·core::iter::adapters::skip::Skip">Skip</a><Self><div·class="where">where |
42 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.skip">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.take"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1366-1368">source</a></span><a·href="#method.take"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take"·class="fn">take</a>(self,·n:·<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>)·->·<a·class="struct"·href="../../core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a><Self><div·class="where">where | 42 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·skips·the·first·<code>n</code>·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.skip">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.take"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1366-1368">source</a></span><a·href="#method.take"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take"·class="fn">take</a>(self,·n:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.usize.html">usize</a>)·->·<a·class="struct"·href="../../core/iter/adapters/take/struct.Take.html"·title="struct·core::iter::adapters::take::Take">Take</a><Self><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·fewer | 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·fewer |
44 | if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1414-1417">source</a></span><a·href="#method.scan"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan"·class="fn">scan</a><St,·B,·F>(self,·initial_state:·St,·f:·F)·->·<a·class="struct"·href="../../core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a><Self,·St,·F><div·class="where">where | 44 | if·the·underlying·iterator·ends·sooner.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.take">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.scan"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1414-1417">source</a></span><a·href="#method.scan"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan"·class="fn">scan</a><St,·B,·F>(self,·initial_state:·St,·f:·F)·->·<a·class="struct"·href="../../core/iter/adapters/scan/struct.Scan.html"·title="struct·core::iter::adapters::scan::Scan">Scan</a><Self,·St,·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="../../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="../../std/primitive.reference.html">&mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><B>,</div></h4></section></summary><div·class='docblock'>An·iterator·adapter·which,·like·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but | 46 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·St</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><B>,</div></h4></section></summary><div·class='docblock'>An·iterator·adapter·which,·like·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·holds·internal·state,·but |
47 | unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.flat_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1453-1457">source</a></span><a·href="#method.flat_map"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.flat_map"·class="fn">flat_map</a><U,·F>(self,·f:·F)·->·<a·class="struct"·href="../../core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a><Self,·U,·F><div·class="where">where | 47 | unlike·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·title="method·core::iter::traits::iterator::Iterator::fold"><code>fold</code></a>,·produces·a·new·iterator.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.scan">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.flat_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1453-1457">source</a></span><a·href="#method.flat_map"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.flat_map"·class="fn">flat_map</a><U,·F>(self,·f:·F)·->·<a·class="struct"·href="../../core/iter/adapters/flatten/struct.FlatMap.html"·title="struct·core::iter::adapters::flatten::FlatMap">FlatMap</a><Self,·U,·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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
49 | ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>, | 49 | ····U:·<a·class="trait"·href="../../core/iter/traits/collect/trait.IntoIterator.html"·title="trait·core::iter::traits::collect::IntoIterator">IntoIterator</a>, |
50 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·U,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·works·like·map,·but·flattens·nested·structure.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.flat_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map_windows"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#1695-1698">source</a><a·href="#method.map_windows"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows"·class="fn">map_windows</a><F,·R,·const·N:·<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>>(self,·f:·F)·->·<a·class="struct"·href="../../core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a><Self,·F,·N><div·class="where">where | 50 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·U,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·that·works·like·map,·but·flattens·nested·structure.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.flat_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.map_windows"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#1695-1698">source</a><a·href="#method.map_windows"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows"·class="fn">map_windows</a><F,·R,·const·N:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.usize.html">usize</a>>(self,·f:·F)·->·<a·class="struct"·href="../../core/iter/adapters/map_windows/struct.MapWindows.html"·title="struct·core::iter::adapters::map_windows::MapWindows">MapWindows</a><Self,·F,·N><div·class="where">where |
51 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 51 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
52 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>;·<a·class="primitive"·href="../../std/primitive.array.html">N</a>])·->·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code> <a·href="https://github.com/rust-lang/rust/issues/87155">#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 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&[Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>;·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.array.html">N</a>])·->·R,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_map_windows</code> <a·href="https://github.com/rust-lang/rust/issues/87155">#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="../../std/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>, | 53 | <code>self</code>·and·returns·an·iterator·over·the·outputs·of·<code>f</code>.·Like·<a·href="https://doc.rust-lang.org/1.82.0/std/primitive.slice.html#method.windows"·title="method·slice::windows"><code>slice::windows()</code></a>, |
54 | the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1762-1764">source</a></span><a·href="#method.fuse"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fuse"·class="fn">fuse</a>(self)·->·<a·class="struct"·href="../../core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a><Self><div·class="where">where | 54 | the·windows·during·mapping·overlap·as·well.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.map_windows">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fuse"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1762-1764">source</a></span><a·href="#method.fuse"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fuse"·class="fn">fuse</a>(self)·->·<a·class="struct"·href="../../core/iter/adapters/fuse/struct.Fuse.html"·title="struct·core::iter::adapters::fuse::Fuse">Fuse</a><Self><div·class="where">where |
55 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fuse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.inspect"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1847-1850">source</a></span><a·href="#method.inspect"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.inspect"·class="fn">inspect</a><F>(self,·f:·F)·->·<a·class="struct"·href="../../core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a><Self,·F><div·class="where">where | 55 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·ends·after·the·first·<a·href="../../core/option/enum.Option.html#variant.None"·title="variant·core::option::Option::None"><code>None</code></a>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fuse">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.inspect"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1847-1850">source</a></span><a·href="#method.inspect"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.inspect"·class="fn">inspect</a><F>(self,·f:·F)·->·<a·class="struct"·href="../../core/iter/adapters/inspect/struct.Inspect.html"·title="struct·core::iter::adapters::inspect::Inspect">Inspect</a><Self,·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="../../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::Item">Item</a>),</div></h4></section></summary><div·class='docblock'>Does·something·with·each·element·of·an·iterator,·passing·the·value·on.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.inspect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.by_ref"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1876-1878">source</a></span><a·href="#method.by_ref"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&mut·self)·->·&mut·Self<div·class="where">where | 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::Item">Item</a>),</div></h4></section></summary><div·class='docblock'>Does·something·with·each·element·of·an·iterator,·passing·the·value·on.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.inspect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.by_ref"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1876-1878">source</a></span><a·href="#method.by_ref"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref"·class="fn">by_ref</a>(&mut·self)·->·&mut·Self<div·class="where">where |
58 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1996-1998">source</a></span><a·href="#method.collect"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a><B>(self)·->·B<div·class="where">where | 58 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Borrows·an·iterator,·rather·than·consuming·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.by_ref">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#1996-1998">source</a></span><a·href="#method.collect"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect"·class="fn">collect</a><B>(self)·->·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><Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>>, | 59 | ····B:·<a·class="trait"·href="../../core/iter/traits/collect/trait.FromIterator.html"·title="trait·core::iter::traits::collect::FromIterator">FromIterator</a><Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>>, |
60 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><div·class='docblock'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#2148-2150">source</a><a·href="#method.collect_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect_into"·class="fn">collect_into</a><E>(self,·collection:·<a·class="primitive"·href="../../std/primitive.reference.html">&mut·E</a>)·->·<a·class="primitive"·href="../../std/primitive.reference.html">&mut·E</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'>Transforms·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.collect_into"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#2148-2150">source</a><a·href="#method.collect_into"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect_into"·class="fn">collect_into</a><E>(self,·collection:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&mut·E</a>)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&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><Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>>, | 61 | ····E:·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a><Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>>, |
62 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect_into</code> <a·href="https://github.com/rust-lang/rust/issues/94780">#94780</a>)</span></div></span><div·class='docblock'>Collects·all·the·items·from·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect_into">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.partition"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2181-2185">source</a></span><a·href="#method.partition"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition"·class="fn">partition</a><B,·F>(self,·f:·F)·->·<a·class="primitive"·href="../../std/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>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_collect_into</code> <a·href="https://github.com/rust-lang/rust/issues/94780">#94780</a>)</span></div></span><div·class='docblock'>Collects·all·the·items·from·an·iterator·into·a·collection.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.collect_into">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.partition"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2181-2185">source</a></span><a·href="#method.partition"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition"·class="fn">partition</a><B,·F>(self,·f:·F)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.tuple.html">(B,·B)</a><div·class="where">where |
63 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 63 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
64 | ····B:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a><Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</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><Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</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::Item">Item</a>)·->·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Consumes·an·iterator,·creating·two·collections·from·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition">R | 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::Item">Item</a>)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Consumes·an·iterator,·creating·two·collections·from·it.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.partition">R[·...·truncated·by·diffoscope;·len:·526,·SHA:·2a94c8493c6269542ab84e659c7f688d27c8f27d59008719370a949d48396380·...·]/std/primitive.bool.html">bool</a><div·class="where">where |
66 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 66 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
67 | ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code> <a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate, | 67 | ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_is_partitioned</code> <a·href="https://github.com/rust-lang/rust/issues/62544">#62544</a>)</span></div></span><div·class='docblock'>Checks·if·the·elements·of·this·iterator·are·partitioned·according·to·the·given·predicate, |
68 | such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.27.0">1.27.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2397-2401">source</a></span><a·href="#method.try_fold"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a><B,·F,·R>(&mut·self,·init:·B,·f:·F)·->·R<div·class="where">where | 68 | such·that·all·those·that·return·<code>true</code>·precede·all·those·that·return·<code>false</code>.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.27.0">1.27.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2397-2401">source</a></span><a·href="#method.try_fold"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold"·class="fn">try_fold</a><B,·F,·R>(&mut·self,·init:·B,·f:·F)·->·R<div·class="where">where |
69 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 69 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
70 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·R, | 70 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·R, |
71 | ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a><Output·=·B>,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns | 71 | ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a><Output·=·B>,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·function·as·long·as·it·returns |
72 | successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.27.0">1.27.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2456-2460">source</a></span><a·href="#method.try_for_each"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a><F,·R>(&mut·self,·f:·F)·->·R<div·class="where">where | 72 | successfully,·producing·a·single,·final·value.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_for_each"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.27.0">1.27.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2456-2460">source</a></span><a·href="#method.try_for_each"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each"·class="fn">try_for_each</a><F,·R>(&mut·self,·f:·F)·->·R<div·class="where">where |
73 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 73 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
74 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·R, | 74 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·R, |
75 | ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a><Output·=·<a·class="primitive"·href="../../std/primitive.unit.html">()</a>>,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the | 75 | ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a><Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.unit.html">()</a>>,</div></h4></section></summary><div·class='docblock'>An·iterator·method·that·applies·a·fallible·function·to·each·item·in·the |
76 | iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2576-2579">source</a></span><a·href="#method.fold"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a><B,·F>(self,·init:·B,·f:·F)·->·B<div·class="where">where | 76 | iterator,·stopping·at·the·first·error·and·returning·that·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.fold"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2576-2579">source</a></span><a·href="#method.fold"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold"·class="fn">fold</a><B,·F>(self,·init:·B,·f:·F)·->·B<div·class="where">where |
77 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 77 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
78 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation, | 78 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(B,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·B,</div></h4></section></summary><div·class='docblock'>Folds·every·element·into·an·accumulator·by·applying·an·operation, |
79 | returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.51.0">1.51.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2614-2617">source</a></span><a·href="#method.reduce"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce"·class="fn">reduce</a><F>(self,·f:·F)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><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·class="where">where | 79 | returning·the·final·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.fold">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.reduce"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.51.0">1.51.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2614-2617">source</a></span><a·href="#method.reduce"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce"·class="fn">reduce</a><F>(self,·f:·F)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><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·class="where">where |
80 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 80 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
81 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing | 81 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,</div></h4></section></summary><div·class='docblock'>Reduces·the·elements·to·a·single·one,·by·repeatedly·applying·a·reducing |
82 | operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#2686-2692">source</a><a·href="#method.try_reduce"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a><R>( | 82 | operation.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_reduce"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#2686-2692">source</a><a·href="#method.try_reduce"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce"·class="fn">try_reduce</a><R>( |
83 | ····&mut·self, | 83 | ····&mut·self, |
84 | ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·R, | 84 | ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·R, |
85 | )·->·<<R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>>::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a><<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><<R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>>::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>>>>::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where | 85 | )·->·<<R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>>::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a><<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><<R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>>::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Output"·title="type·core::ops::try_trait::Try::Output">Output</a>>>>::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where |
86 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 86 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
87 | ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a><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>>, | 87 | ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a><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>>, |
88 | ····<R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>>::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a><<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><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>iterator_try_reduce</code> <a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the | 88 | ····<R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>>::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a><<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><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>iterator_try_reduce</code> <a·href="https://github.com/rust-lang/rust/issues/87053">#87053</a>)</span></div></span><div·class='docblock'>Reduces·the·elements·to·a·single·one·by·repeatedly·applying·a·reducing·operation.·If·the |
89 | closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2745-2748">source</a></span><a·href="#method.all"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.all"·class="fn">all</a><F>(&mut·self,·f:·F)·->·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a><div·class="where">where | 89 | closure·returns·a·failure,·the·failure·is·propagated·back·to·the·caller·immediately.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_reduce">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.all"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2745-2748">source</a></span><a·href="#method.all"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.all"·class="fn">all</a><F>(&mut·self,·f:·F)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.bool.html">bool</a><div·class="where">where |
90 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 90 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
91 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Tests·if·every·element·of·the·iterator·matches·a·predicate.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.all">R | 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>)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Tests·if·every·element·of·the·iterator·matches·a·predicate.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.all">Rea[·...·truncated·by·diffoscope;·len:·577,·SHA:·b8c7dc92bc0dfd064f561b4a68102175e6e20f14e876d9b996b03f2c6c2ab76f·...·]/std/primitive.bool.html">bool</a><div·class="where">where |
92 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 92 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
93 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Tests·if·any·element·of·the·iterator·matches·a·predicate.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.any">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.find"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2863-2866">source</a></span><a·href="#method.find"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find"·class="fn">find</a><P>(&mut·self,·predicate:·P)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><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·class="where">where | 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>)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Tests·if·any·element·of·the·iterator·matches·a·predicate.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.any">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.find"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2863-2866">source</a></span><a·href="#method.find"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find"·class="fn">find</a><P>(&mut·self,·predicate:·P)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><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·class="where">where |
94 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 94 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
95 | ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Searches·for·an·element·of·an·iterator·that·satisfies·a·predicate.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.find_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.30.0">1.30.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2895-2898">source</a></span><a·href="#method.find_map"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map"·class="fn">find_map</a><B,·F>(&mut·self,·f:·F)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><B><div·class="where">where | 95 | ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Searches·for·an·element·of·an·iterator·that·satisfies·a·predicate.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.find_map"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.30.0">1.30.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#2895-2898">source</a></span><a·href="#method.find_map"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map"·class="fn">find_map</a><B,·F>(&mut·self,·f:·F)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><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="../../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>)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><B>,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns | 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>)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><B>,</div></h4></section></summary><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns |
98 | the·first·non-none·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#2954-2960">source</a><a·href="#method.try_find"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a><R>( | 98 | the·first·non-none·result.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.try_find"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#2954-2960">source</a><a·href="#method.try_find"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_find"·class="fn">try_find</a><R>( |
99 | ····&mut·self, | 99 | ····&mut·self, |
100 | ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·R, | 100 | ····f:·impl·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·R, |
101 | )·->·<<R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>>::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a><<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>>>>::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where | 101 | )·->·<<R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>>::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a><<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>>>>::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Residual.html#associatedtype.TryType"·title="type·core::ops::try_trait::Residual::TryType">TryType</a><div·class="where">where |
102 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 102 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
103 | ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a><Output·=·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>>, | 103 | ····R:·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a><Output·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.bool.html">bool</a>>, |
104 | ····<R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>>::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a><<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><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>try_find</code> <a·href="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 | ····<R·as·<a·class="trait"·href="../../core/ops/try_trait/trait.Try.html"·title="trait·core::ops::try_trait::Try">Try</a>>::<a·class="associatedtype"·href="../../core/ops/try_trait/trait.Try.html#associatedtype.Residual"·title="type·core::ops::try_trait::Try::Residual">Residual</a>:·<a·class="trait"·href="../../core/ops/try_trait/trait.Residual.html"·title="trait·core::ops::try_trait::Residual">Residual</a><<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><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>try_find</code> <a·href="https://github.com/rust-lang/rust/issues/63178">#63178</a>)</span></div></span><div·class='docblock'>Applies·function·to·the·elements·of·iterator·and·returns |
105 | the·first·true·result·or·the·first·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3038-3041">source</a></span><a·href="#method.position"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.position"·class="fn">position</a><P>(&mut·self,·predicate:·P)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>><div·class="where">where | 105 | the·first·true·result·or·the·first·error.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.position"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3038-3041">source</a></span><a·href="#method.position"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.position"·class="fn">position</a><P>(&mut·self,·predicate:·P)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.usize.html">usize</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="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
107 | ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="primitive"·href="../../std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Searches·for·an·element·in·an·iterator,·returning·its·index.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.position">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3213-3216">source</a></span><a·href="#method.max_by_key"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.max_by_key"·class="fn">max_by_key</a><B,·F>(self,·f:·F)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><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·class="where">where | 107 | ····P:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div·class='docblock'>Searches·for·an·element·in·an·iterator,·returning·its·index.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.position">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3213-3216">source</a></span><a·href="#method.max_by_key"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.max_by_key"·class="fn">max_by_key</a><B,·F>(self,·f:·F)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><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·class="where">where |
108 | ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>, | 108 | ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>, |
109 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 109 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
110 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the | 110 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·from·the |
111 | specified·function.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.max_by_key">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max_by"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3247-3250">source</a></span><a·href="#method.max_by"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.max_by"·class="fn">max_by</a><F>(self,·compare:·F)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><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·class="where">where | 111 | specified·function.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.max_by_key">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.max_by"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3247-3250">source</a></span><a·href="#method.max_by"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.max_by"·class="fn">max_by</a><F>(self,·compare:·F)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><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·class="where">where |
112 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 112 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
113 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·&Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="enum"·href="../../core/cmp/enum.Ordering.html"·title="enum·core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·with·respect·to·the | 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::Item">Item</a>,·&Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="enum"·href="../../core/cmp/enum.Ordering.html"·title="enum·core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·maximum·value·with·respect·to·the |
114 | specified·comparison·function.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.max_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.min_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3275-3278">source</a></span><a·href="#method.min_by_key"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.min_by_key"·class="fn">min_by_key</a><B,·F>(self,·f:·F)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><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·class="where">where | 114 | specified·comparison·function.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.max_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.min_by_key"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.6.0">1.6.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3275-3278">source</a></span><a·href="#method.min_by_key"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.min_by_key"·class="fn">min_by_key</a><B,·F>(self,·f:·F)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><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·class="where">where |
115 | ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>, | 115 | ····B:·<a·class="trait"·href="../../core/cmp/trait.Ord.html"·title="trait·core::cmp::Ord">Ord</a>, |
116 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 116 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
117 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·minimum·value·from·the | 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::Item">Item</a>)·->·B,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·minimum·value·from·the |
118 | specified·function.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.min_by_key">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.min_by"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3309-3312">source</a></span><a·href="#method.min_by"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.min_by"·class="fn">min_by</a><F>(self,·compare:·F)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><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·class="where">where | 118 | specified·function.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.min_by_key">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.min_by"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.15.0">1.15.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3309-3312">source</a></span><a·href="#method.min_by"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.min_by"·class="fn">min_by</a><F>(self,·compare:·F)·->·<a·class="enum"·href="../../core/option/enum.Option.html"·title="enum·core::option::Option">Option</a><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·class="where">where |
119 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, | 119 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>, |
120 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·&Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="enum"·href="../../core/cmp/enum.Ordering.html"·title="enum·core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·minimum·value·with·respect·to·the | 120 | ····F:·<a·class="trait"·href="../../core/ops/function/trait.FnMut.html"·title="trait·core::ops::function::FnMut">FnMut</a>(&Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>,·&Self::<a·class="associatedtype"·href="../../core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"·title="type·core::iter::traits::iterator::Iterator::Item">Item</a>)·->·<a·class="enum"·href="../../core/cmp/enum.Ordering.html"·title="enum·core::cmp::Ordering">Ordering</a>,</div></h4></section></summary><div·class='docblock'>Returns·the·element·that·gives·the·minimum·value·with·respect·to·the |
121 | specified·comparison·function.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.min_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.unzip"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3384-3388">source</a></span><a·href="#method.unzip"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.unzip"·class="fn">unzip</a><A,·B,·FromA,·FromB>(self)·->·<a·class="primitive"·href="../../std/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where | 121 | specified·comparison·function.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.min_by">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.unzip"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3384-3388">source</a></span><a·href="#method.unzip"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.unzip"·class="fn">unzip</a><A,·B,·FromA,·FromB>(self)·->·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.tuple.html">(FromA,·FromB)</a><div·class="where">where |
122 | ····FromA:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a><A>, | 122 | ····FromA:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a><A>, |
123 | ····FromB:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a><B>, | 123 | ····FromB:·<a·class="trait"·href="../../core/default/trait.Default.html"·title="trait·core::default::Default">Default</a>·+·<a·class="trait"·href="../../core/iter/traits/collect/trait.Extend.html"·title="trait·core::iter::traits::collect::Extend">Extend</a><B>, |
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><Item·=·<a·class="primitive"·href="../../std/primitive.tuple.html">(A,·B)</a>>,</div></h4></section></summary><div·class='docblock'>Converts·an·iterator·of·pairs·into·a·pair·of·containers.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.unzip">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.copied"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3415-3418">source</a></span><a·href="#method.copied"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.copied"·class="fn">copied</a><'a,·T>(self)·->·<a·class="struct"·href="../../core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a><Self><div·class="where">where | 124 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a><Item·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.tuple.html">(A,·B)</a>>,</div></h4></section></summary><div·class='docblock'>Converts·an·iterator·of·pairs·into·a·pair·of·containers.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.unzip">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.copied"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.36.0">1.36.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3415-3418">source</a></span><a·href="#method.copied"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.copied"·class="fn">copied</a><'a,·T>(self)·->·<a·class="struct"·href="../../core/iter/adapters/copied/struct.Copied.html"·title="struct·core::iter::adapters::copied::Copied">Copied</a><Self><div·class="where">where |
125 | ····T:·'a·+·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>, | 125 | ····T:·'a·+·<a·class="trait"·href="../../core/marker/trait.Copy.html"·title="trait·core::marker::Copy">Copy</a>, |
126 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a><Item·=·<a·class="primitive"·href="../../std/primitive.reference.html">&'a·T</a>>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·copies·all·of·its·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.copied">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cloned"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3463-3466">source</a></span><a·href="#method.cloned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.cloned"·class="fn">cloned</a><'a,·T>(self)·->·<a·class="struct"·href="../../core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a><Self><div·class="where">where | 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><Item·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&'a·T</a>>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·copies·all·of·its·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.copied">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cloned"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3463-3466">source</a></span><a·href="#method.cloned"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.cloned"·class="fn">cloned</a><'a,·T>(self)·->·<a·class="struct"·href="../../core/iter/adapters/cloned/struct.Cloned.html"·title="struct·core::iter::adapters::cloned::Cloned">Cloned</a><Self><div·class="where">where |
127 | ····T:·'a·+·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>, | 127 | ····T:·'a·+·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>, |
128 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a><Item·=·<a·class="primitive"·href="../../std/primitive.reference.html">&'a·T</a>>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·title="method·core::clone::Clone::clone"><code>clone</code></a>s·all·of·its·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.cloned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cycle"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3496-3498">source</a></span><a·href="#method.cycle"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.cycle"·class="fn">cycle</a>(self)·->·<a·class="struct"·href="../../core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a><Self><div·class="where">where | 128 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/iter/traits/iterator/trait.Iterator.html"·title="trait·core::iter::traits::iterator::Iterator">Iterator</a><Item·=·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.reference.html">&'a·T</a>>,</div></h4></section></summary><div·class='docblock'>Creates·an·iterator·which·<a·href="../../core/clone/trait.Clone.html#tymethod.clone"·title="method·core::clone::Clone::clone"><code>clone</code></a>s·all·of·its·elements.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.cloned">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.cycle"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.0.0">1.0.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3496-3498">source</a></span><a·href="#method.cycle"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.cycle"·class="fn">cycle</a>(self)·->·<a·class="struct"·href="../../core/iter/adapters/cycle/struct.Cycle.html"·title="struct·core::iter::adapters::cycle::Cycle">Cycle</a><Self><div·class="where">where |
129 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><div·class='docblock'>Repeats·an·iterator·endlessly.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.cycle">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.array_chunks"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#3540-3542">source</a><a·href="#method.array_chunks"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.array_chunks"·class="fn">array_chunks</a><const·N:·<a·class="primitive"·href="../../std/primitive.usize.html">usize</a>>(self)·->·<a·class="struct"·href="../../core/iter/adapters/array_chunks/struct.ArrayChunks.html"·title="struct·core::iter::adapters::array_chunks::ArrayChunks">ArrayChunks</a><Self,·N><div·class="where">where | 129 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>·+·<a·class="trait"·href="../../core/clone/trait.Clone.html"·title="trait·core::clone::Clone">Clone</a>,</div></h4></section></summary><div·class='docblock'>Repeats·an·iterator·endlessly.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.cycle">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.array_chunks"·class="method·trait-impl"><a·class="src·rightside"·href="../../src/core/iter/traits/iterator.rs.html#3540-3542">source</a><a·href="#method.array_chunks"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.array_chunks"·class="fn">array_chunks</a><const·N:·<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.usize.html">usize</a>>(self)·->·<a·class="struct"·href="../../core/iter/adapters/array_chunks/struct.ArrayChunks.html"·title="struct·core::iter::adapters::array_chunks::ArrayChunks">ArrayChunks</a><Self,·N><div·class="where">where |
130 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_array_chunks</code> <a·href="https://github.com/rust-lang/rust/issues/100450">#100450</a>)</span></div></span><div·class='docblock'>Returns·an·iterator·over·<code>N</code>·elements·of·the·iterator·at·a·time.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.array_chunks">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.sum"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.11.0">1.11.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3572-3575">source</a></span><a·href="#method.sum"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.sum"·class="fn">sum</a><S>(self)·->·S<div·class="where">where | 130 | ····Self:·<a·class="trait"·href="../../core/marker/trait.Sized.html"·title="trait·core::marker::Sized">Sized</a>,</div></h4></section></summary><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>iter_array_chunks</code> <a·href="https://github.com/rust-lang/rust/issues/100450">#100450</a>)</span></div></span><div·class='docblock'>Returns·an·iterator·over·<code>N</code>·elements·of·the·iterator·at·a·time.·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.array_chunks">Read·more</a></div></details><details·class="toggle·method-toggle"·open><summary><section·id="method.sum"·class="method·trait-impl"><span·class="rightside"><span·class="since"·title="Stable·since·Rust·version·1.11.0">1.11.0</span>···<a·class="src"·href="../../src/core/iter/traits/iterator.rs.html#3572-3575">source</a></span><a·href="#method.sum"·class="anchor">§</a><h4·class="code-header">fn·<a·href="../../core/iter/traits/iterator/trait.Iterator.html#method.sum"·class="fn">sum</a><S>(self)·->·S<div·class="where">where |
Max diff block lines reached; 58543/180728 bytes (32.39%) of diff not shown. |
Offset 1, 6 lines modified | Offset 1, 6 lines modified | ||
1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Retrieve·an·environment·variable·and·add·it·to·build·dependency·info.·The·build·system·executing·the·compiler·will·know·that·the·variable·was·accessed·during·compilation,·and·will·be·able·to·rerun·the·build·when·the·value·of·that·variable·changes.·Besides·the·dependency·tracking·this·function·should·be·equivalent·to·`env::var`·from·the·standard·library,·except·that·the·argument·must·be·UTF-8."><title>var·in·proc_macro::tracked_env·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·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="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec» 2024-10-15)» (built» from» a» source» tarball)</div><div·class="sidebar-elems"><h2><a·href="index.html">In·proc_<wbr>macro::<wbr>tracked_<wbr>env</a></h2></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">proc_macro</a>::<wbr><a·href="index.html">tracked_env</a>::<wbr><a·class="fn"·href="#">var</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><span·class="out-of-band"><a·class="src"·href="../../src/proc_macro/lib.rs.html#1569-1575">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·fn·var<K:·<a·class="trait"·href="../../core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a><<a·class="struct"·href="../../std/ffi/os_str/struct.OsStr.html"·title="struct·std::ffi::os_str::OsStr">OsStr</a>>·+·<a·class="trait"·href="../../core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a><<a·class="primitive"·href= | 1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Retrieve·an·environment·variable·and·add·it·to·build·dependency·info.·The·build·system·executing·the·compiler·will·know·that·the·variable·was·accessed·during·compilation,·and·will·be·able·to·rerun·the·build·when·the·value·of·that·variable·changes.·Besides·the·dependency·tracking·this·function·should·be·equivalent·to·`env::var`·from·the·standard·library,·except·that·the·argument·must·be·UTF-8."><title>var·in·proc_macro::tracked_env·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·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="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec» 2024-10-15)» (built» from» a» source» tarball)</div><div·class="sidebar-elems"><h2><a·href="index.html">In·proc_<wbr>macro::<wbr>tracked_<wbr>env</a></h2></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">proc_macro</a>::<wbr><a·href="index.html">tracked_env</a>::<wbr><a·class="fn"·href="#">var</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><span·class="out-of-band"><a·class="src"·href="../../src/proc_macro/lib.rs.html#1569-1575">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·fn·var<K:·<a·class="trait"·href="../../core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a><<a·class="struct"·href="https://doc.rust-lang.org/1.82.0/std/ffi/os_str/struct.OsStr.html"·title="struct·std::ffi::os_str::OsStr">OsStr</a>>·+·<a·class="trait"·href="../../core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a><<a·class="primitive"·href=[·...·truncated·by·diffoscope;·len:·360,·SHA:·9ed69891ddfe7fcaad86f34fb2032f677ae05d22c757cd5ccd05e5c0b9de61b6·...·]/std/env/enum.VarError.html"·title="enum·std::env::VarError">VarError</a>></code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>proc_macro_tracked_env</code> <a·href="https://github.com/rust-lang/rust/issues/99515">#99515</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Retrieve·an·environment·variable·and·add·it·to·build·dependency·info. |
2 | The·build·system·executing·the·compiler·will·know·that·the·variable·was·accessed·during | 2 | The·build·system·executing·the·compiler·will·know·that·the·variable·was·accessed·during |
3 | compilation,·and·will·be·able·to·rerun·the·build·when·the·value·of·that·variable·changes. | 3 | compilation,·and·will·be·able·to·rerun·the·build·when·the·value·of·that·variable·changes. |
4 | Besides·the·dependency·tracking·this·function·should·be·equivalent·to·<code>env::var</code>·from·the | 4 | Besides·the·dependency·tracking·this·function·should·be·equivalent·to·<code>env::var</code>·from·the |
5 | standard·library,·except·that·the·argument·must·be·UTF-8.</p> | 5 | standard·library,·except·that·the·argument·must·be·UTF-8.</p> |
6 | </div></details></section></div></main></body></html> | 6 | </div></details></section></div></main></body></html> |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Track·a·file·explicitly."><title>path·in·proc_macro::tracked_path·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·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="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec»2024-10-15)» (built» from» a» source» tarball)</div><div·class="sidebar-elems"><h2><a·href="index.html">In·proc_<wbr>macro::<wbr>tracked_<wbr>path</a></h2></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">proc_macro</a>::<wbr><a·href="index.html">tracked_path</a>::<wbr><a·class="fn"·href="#">path</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><span·class="out-of-band"><a·class="src"·href="../../src/proc_macro/lib.rs.html#1586-1589">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·fn·path<P:·<a·class="trait"·href="../../core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a><<a·class="primitive"·href="../../std/primitive.str.html">str</a>>>(path:·P)</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>track_path</code> <a·href="https://github.com/rust-lang/rust/issues/99515">#99515</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Track·a·file·explicitly.</p> | 1 | <!DOCTYPE·html><html·lang="en"><head><meta·charset="utf-8"><meta·name="viewport"·content="width=device-width,·initial-scale=1.0"><meta·name="generator"·content="rustdoc"><meta·name="description"·content="Track·a·file·explicitly."><title>path·in·proc_macro::tracked_path·-·Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link·rel="preload"·as="font"·type="font/woff2"·crossorigin·href="../../static.files/${f}">`).join(""))</script><link·rel="stylesheet"·href="../../static.files/normalize-76eba96aa4d2e634.css"><link·rel="stylesheet"·href="../../static.files/rustdoc-8e30412312326d47.css"><meta·name="rustdoc-vars"·data-root-path="../../"·data-static-root-path="../../static.files/"·data-current-crate="proc_macro"·data-themes=""·data-resource-suffix="1.82.0"·data-rustdoc-version="1.82.0·(f6e511eec·2024-10-15)·(built·from·a·source·tarball)"·data-channel="1.82.0"·data-search-js="search-a99f1315e7cc5121.js"·data-settings-js="settings-4313503d2e1961c2.js"·><script·src="../../static.files/storage-118b08c4c78b968e.js"></script><script·defer·src="sidebar-items1.82.0.js"></script><script·defer·src="../../static.files/main-921df33f47b8780c.js"></script><noscript><link·rel="stylesheet"·href="../../static.files/noscript-3b12f09e550e0385.css"></noscript><link·rel="alternate·icon"·type="image/png"·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="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt=""></a></nav><nav·class="sidebar"><div·class="sidebar-crate"><a·class="logo-container"·href="../../proc_macro/index.html"><img·class="rust-logo"·src="../../static.files/rust-logo-151179464ae7ed46.svg"·alt="logo"></a><h2><a·href="../../proc_macro/index.html">proc_<wbr>macro</a><span·class="version">1.82.0</span></h2></div><div·class="version">(f6e511eec»2024-10-15)» (built» from» a» source» tarball)</div><div·class="sidebar-elems"><h2><a·href="index.html">In·proc_<wbr>macro::<wbr>tracked_<wbr>path</a></h2></div></nav><div·class="sidebar-resizer"></div><main><div·class="width-limiter"><rustdoc-search></rustdoc-search><section·id="main-content"·class="content"><div·class="main-heading"><h1>Function·<a·href="../index.html">proc_macro</a>::<wbr><a·href="index.html">tracked_path</a>::<wbr><a·class="fn"·href="#">path</a><button·id="copy-path"·title="Copy·item·path·to·clipboard">Copy·item·path</button></h1><span·class="out-of-band"><a·class="src"·href="../../src/proc_macro/lib.rs.html#1586-1589">source</a>···<button·id="toggle-all-docs"·title="collapse·all·docs">[<span>−</span>]</button></span></div><pre·class="rust·item-decl"><code>pub·fn·path<P:·<a·class="trait"·href="../../core/convert/trait.AsRef.html"·title="trait·core::convert::AsRef">AsRef</a><<a·class="primitive"·href="https://doc.rust-lang.org/1.82.0/std/primitive.str.html">str</a>>>(path:·P)</code></pre><span·class="item-info"><div·class="stab·unstable"><span·class="emoji">🔬</span><span>This·is·a·nightly-only·experimental·API.·(<code>track_path</code> <a·href="https://github.com/rust-lang/rust/issues/99515">#99515</a>)</span></div></span><details·class="toggle·top-doc"·open><summary·class="hideme"><span>Expand·description</span></summary><div·class="docblock"><p>Track·a·file·explicitly.</p> |
2 | <p>Commonly·used·for·tracking·asset·preprocessing.</p> | 2 | <p>Commonly·used·for·tracking·asset·preprocessing.</p> |
3 | </div></details></section></div></main></body></html> | 3 | </div></details></section></div></main></body></html> |
Offset 48, 16 lines modified | Offset 48, 16 lines modified | ||
48 | ············["impl<T:·?<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.82.0/core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>·+·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.82.0/core/cmp/trait.PartialEq.html\"·title=\"trait·core::cmp::PartialEq\">PartialEq</a>,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>>·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.82.0/core/cmp/trait.PartialEq.html\"·title=\"trait·core::cmp::PartialEq\">PartialEq</a>·for·<a·class=\"struct\"·href=\"alloc/sync/struct.Arc.html\"·title=\"struct·alloc::sync::Arc\">Arc</a><T,·A>"] | 48 | ············["impl<T:·?<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.82.0/core/marker/trait.Sized.html\"·title=\"trait·core::marker::Sized\">Sized</a>·+·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.82.0/core/cmp/trait.PartialEq.html\"·title=\"trait·core::cmp::PartialEq\">PartialEq</a>,·A:·<a·class=\"trait\"·href=\"alloc/alloc/trait.Allocator.html\"·title=\"trait·alloc::alloc::Allocator\">Allocator</a>>·<a·class=\"trait\"·href=\"https://doc.rust-lang.org/1.82.0/core/cmp/trait.PartialEq.html\"·title=\"trait·core::cmp::PartialEq\">PartialEq</a>·for·<a·class=\"struct\"·href=\"alloc/sync/struct.Arc.html\"·title=\"struct·alloc::sync::Arc\">Arc</a><T,·A>"] |
49 | ········]], | 49 | ········]], |
50 | ········["core",·[]], | 50 | ········["core",·[]], |
51 | ········["proc_macro",·[ | 51 | ········["proc_macro",·[ |
52 | ············["impl·<a·class=\"trait\"·href=\"core/cmp/trait.PartialEq.html\"·title=\"trait·core::cmp::PartialEq\">PartialEq</a>·for·<a·class=\"enum\"·href=\"proc_macro/enum.Delimiter.html\"·title=\"enum·proc_macro::Delimiter\">Delimiter</a>"], | 52 | ············["impl·<a·class=\"trait\"·href=\"core/cmp/trait.PartialEq.html\"·title=\"trait·core::cmp::PartialEq\">PartialEq</a>·for·<a·class=\"enum\"·href=\"proc_macro/enum.Delimiter.html\"·title=\"enum·proc_macro::Delimiter\">Delimiter</a>"], |
53 | ············["impl·<a·class=\"trait\"·href=\"core/cmp/trait.PartialEq.html\"·title=\"trait·core::cmp::PartialEq\">PartialEq</a>·for·<a·class=\"enum\"·href=\"proc_macro/enum.Spacing.html\"·title=\"enum·proc_macro::Spacing\">Spacing</a>"], | 53 | ············["impl·<a·class=\"trait\"·href=\"core/cmp/trait.PartialEq.html\"·title=\"trait·core::cmp::PartialEq\">PartialEq</a>·for·<a·class=\"enum\"·href=\"proc_macro/enum.Spacing.html\"·title=\"enum·proc_macro::Spacing\">Spacing</a>"], |
54 | ············["impl·<a·class=\"trait\"·href=\"core/cmp/trait.PartialEq.html\"·title=\"trait·core::cmp::PartialEq\">PartialEq</a>·for·<a·class=\"struct\"·href=\"proc_macro/struct.SourceFile.html\"·title=\"struct·proc_macro::SourceFile\">SourceFile</a>"], | 54 | ············["impl·<a·class=\"trait\"·href=\"core/cmp/trait.PartialEq.html\"·title=\"trait·core::cmp::PartialEq\">PartialEq</a>·for·<a·class=\"struct\"·href=\"proc_macro/struct.SourceFile.html\"·title=\"struct·proc_macro::SourceFile\">SourceFile</a>"], |
55 | ············["impl·<a·class=\"trait\"·href=\"core/cmp/trait.PartialEq.html\"·title=\"trait·core::cmp::PartialEq\">PartialEq</a><<a·class=\"primitive\"·href=\"std/primitive.char.html\">char</a>>·for·<a·class=\"struct\"·href=\"proc_macro/struct.Punct.html\"·title=\"struct·proc_macro::Punct\">Punct</a>"], | 55 | ············["impl·<a·class=\"trait\"·href=\"core/cmp/trait.PartialEq.html\"·title=\"trait·core::cmp::PartialEq\">PartialEq</a><<a·class=\"primitive\"·href=\"https://doc.rust-lang.org/1.82.0/std/primitive.char.html\">char</a>>·for·<a·class=\"struct\"·href=\"proc_macro/struct.Punct.html\"·title=\"struct·proc_macro::Punct\">Punct</a>"], |
56 | ············["impl·<a·class=\"trait\"·href=\"core/cmp/trait.PartialEq.html\"·title=\"trait·core::cmp::PartialEq\">PartialEq</a><<a·class=\"struct\"·href=\"proc_macro/struct.Punct.html\"·title=\"struct·proc_macro::Punct\">Punct</a>>·for·<a·class=\"primitive\"·href=\"std/primitive.char.html\">char</a>"] | 56 | ············["impl·<a·class=\"trait\"·href=\"core/cmp/trait.PartialEq.html\"·title=\"trait·core::cmp::PartialEq\">PartialEq</a><<a·class=\"struct\"·href=\"proc_macro/struct.Punct.html\"·title=\"struct·proc_macro::Punct\">Punct</a>>·for·<a·class=\"primitive\"·href=\"https://doc.rust-lang.org/1.82.0/std/primitive.char.html\">char</a>"] |
57 | ········]], | 57 | ········]], |
58 | ········["std",·[ | 58 | ········["std",·[ |
59 | ············["impl·<a·class=\"trait\"·href=\"std/cmp/trait.PartialEq.html\"·title=\"trait·std::cmp::PartialEq\">PartialEq</a>·for·<a·class=\"enum\"·href=\"std/backtrace/enum.BacktraceStatus.html\"·title=\"enum·std::backtrace::BacktraceStatus\">BacktraceStatus</a>"], | 59 | ············["impl·<a·class=\"trait\"·href=\"std/cmp/trait.PartialEq.html\"·title=\"trait·std::cmp::PartialEq\">PartialEq</a>·for·<a·class=\"enum\"·href=\"std/backtrace/enum.BacktraceStatus.html\"·title=\"enum·std::backtrace::BacktraceStatus\">BacktraceStatus</a>"], |
60 | ············["impl·<a·class=\"trait\"·href=\"std/cmp/trait.PartialEq.html\"·title=\"trait·std::cmp::PartialEq\">PartialEq</a>·for·<a·class=\"enum\"·href=\"std/env/enum.VarError.html\"·title=\"enum·std::env::VarError\">VarError</a>"], | 60 | ············["impl·<a·class=\"trait\"·href=\"std/cmp/trait.PartialEq.html\"·title=\"trait·std::cmp::PartialEq\">PartialEq</a>·for·<a·class=\"enum\"·href=\"std/env/enum.VarError.html\"·title=\"enum·std::env::VarError\">VarError</a>"], |
61 | ············["impl·<a·class=\"trait\"·href=\"std/cmp/trait.PartialEq.html\"·title=\"trait·std::cmp::PartialEq\">PartialEq</a>·for·<a·class=\"enum\"·href=\"std/io/enum.ErrorKind.html\"·title=\"enum·std::io::ErrorKind\">ErrorKind</a>"], | 61 | ············["impl·<a·class=\"trait\"·href=\"std/cmp/trait.PartialEq.html\"·title=\"trait·std::cmp::PartialEq\">PartialEq</a>·for·<a·class=\"enum\"·href=\"std/io/enum.ErrorKind.html\"·title=\"enum·std::io::ErrorKind\">ErrorKind</a>"], |
62 | ············["impl·<a·class=\"trait\"·href=\"std/cmp/trait.PartialEq.html\"·title=\"trait·std::cmp::PartialEq\">PartialEq</a>·for·<a·class=\"enum\"·href=\"std/io/enum.SeekFrom.html\"·title=\"enum·std::io::SeekFrom\">SeekFrom</a>"], | 62 | ············["impl·<a·class=\"trait\"·href=\"std/cmp/trait.PartialEq.html\"·title=\"trait·std::cmp::PartialEq\">PartialEq</a>·for·<a·class=\"enum\"·href=\"std/io/enum.SeekFrom.html\"·title=\"enum·std::io::SeekFrom\">SeekFrom</a>"], |
63 | ············["impl·<a·class=\"trait\"·href=\"std/cmp/trait.PartialEq.html\"·title=\"trait·std::cmp::PartialEq\">PartialEq</a>·for·<a·class=\"enum\"·href=\"std/net/enum.Shutdown.html\"·title=\"enum·std::net::Shutdown\">Shutdown</a>"], | 63 | ············["impl·<a·class=\"trait\"·href=\"std/cmp/trait.PartialEq.html\"·title=\"trait·std::cmp::PartialEq\">PartialEq</a>·for·<a·class=\"enum\"·href=\"std/net/enum.Shutdown.html\"·title=\"enum·std::net::Shutdown\">Shutdown</a>"], |
Offset 167, 8 lines modified | Offset 167, 8 lines modified | ||
167 | ····]); | 167 | ····]); |
168 | ····if·(window.register_implementors)·{ | 168 | ····if·(window.register_implementors)·{ |
169 | ········window.register_implementors(implementors); | 169 | ········window.register_implementors(implementors); |
170 | ····}·else·{ | 170 | ····}·else·{ |
171 | ········window.pending_implementors·=·implementors; | 171 | ········window.pending_implementors·=·implementors; |
172 | ····} | 172 | ····} |
173 | })() | 173 | })() |
174 | //{"start":57,"fragment_lengths":[27043,12,13 | 174 | //{"start":57,"fragment_lengths":[27043,12,1373,30842,3288]} |