{"diffoscope-json-version": 1, "source1": "/srv/reproducible-results/rbuild-debian/r-b-build.EwWOGBKe/b1/rustc_1.82.0+dfsg1-2_arm64.changes", "source2": "/srv/reproducible-results/rbuild-debian/r-b-build.EwWOGBKe/b2/rustc_1.82.0+dfsg1-2_arm64.changes", "unified_diff": null, "details": [{"source1": "Files", "source2": "Files", "unified_diff": "@@ -1,19 +1,19 @@\n \n e2c93e730214a4434d04c9fd68ef0624 69028060 debug optional cargo-dbgsym_1.82.0+dfsg1-2_arm64.deb\n- 850aa855f1a991f10308d9ec01f1b2ef 4240232 doc optional cargo-doc_1.82.0+dfsg1-2_all.deb\n+ eb9aaa52d6ffe5a8c5e6dab60a8799cb 4240372 doc optional cargo-doc_1.82.0+dfsg1-2_all.deb\n 4ba8dfa6caa20be61cdf646714452fa8 5303612 devel optional cargo_1.82.0+dfsg1-2_arm64.deb\n bc3b59505f92d80fd8845db8a21ed495 263704548 debug optional libstd-rust-1.82-dbgsym_1.82.0+dfsg1-2_arm64.deb\n 40d32b84f74089743e55c799046ff4aa 18622856 libs optional libstd-rust-1.82_1.82.0+dfsg1-2_arm64.deb\n 6734d1a3b7d31c36d0dfbec7d99ffd2b 120214604 libdevel optional libstd-rust-dev-wasm32_1.82.0+dfsg1-2_all.deb\n ac727d61c48602905632c3af4788f78c 37028000 libdevel optional libstd-rust-dev_1.82.0+dfsg1-2_arm64.deb\n e7345741de5fc570762b6b66bc2933c8 232712 devel optional rust-all_1.82.0+dfsg1-2_all.deb\n 1211b946d9d0f3709c8088ef5d36fe08 57271308 debug optional rust-clippy-dbgsym_1.82.0+dfsg1-2_arm64.deb\n 0031fb451853eb70ebcd19e6477fbb77 2665800 devel optional rust-clippy_1.82.0+dfsg1-2_arm64.deb\n- a3d95b96f6e929fc134f25308fb8f592 21935072 doc optional rust-doc_1.82.0+dfsg1-2_all.deb\n+ c4c4f6ea6cfc1bba267e242680c31ae4 21916804 doc optional rust-doc_1.82.0+dfsg1-2_all.deb\n e9fbd2dd8ed25d8d0e98061ca0a251a9 238392 devel optional rust-gdb_1.82.0+dfsg1-2_all.deb\n 08a0d6b6b0ea1462e36bb46b7fb54017 239156 devel optional rust-lldb_1.82.0+dfsg1-2_all.deb\n 956e1a0c47922d302ee21b6289dc7136 1507612 devel optional rust-llvm_1.82.0+dfsg1-2_arm64.deb\n b2d49c87d65e95c6fa98c40abecadcd2 46099532 devel optional rust-src_1.82.0+dfsg1-2_all.deb\n c6e678bc03d296703ffb7f6ce045ac82 34216732 debug optional rustc-dbgsym_1.82.0+dfsg1-2_arm64.deb\n 082618ca2c00c76955fd4818f2df965c 3220852 devel optional rustc_1.82.0+dfsg1-2_arm64.deb\n a0a3aed4935233ead7705aaeccfa046e 22049944 debug optional rustfmt-dbgsym_1.82.0+dfsg1-2_arm64.deb\n"}, {"source1": "cargo-doc_1.82.0+dfsg1-2_all.deb", "source2": "cargo-doc_1.82.0+dfsg1-2_all.deb", "unified_diff": null, "details": [{"source1": "file list", "source2": "file list", "unified_diff": "@@ -1,3 +1,3 @@\n -rw-r--r-- 0 0 0 4 2024-10-29 12:18:35.000000 debian-binary\n--rw-r--r-- 0 0 0 73768 2024-10-29 12:18:35.000000 control.tar.xz\n--rw-r--r-- 0 0 0 4166272 2024-10-29 12:18:35.000000 data.tar.xz\n+-rw-r--r-- 0 0 0 73776 2024-10-29 12:18:35.000000 control.tar.xz\n+-rw-r--r-- 0 0 0 4166404 2024-10-29 12:18:35.000000 data.tar.xz\n"}, {"source1": "control.tar.xz", "source2": "control.tar.xz", "unified_diff": null, "details": [{"source1": "control.tar", "source2": "control.tar", "unified_diff": null, "details": [{"source1": "./md5sums", "source2": "./md5sums", "unified_diff": null, "details": [{"source1": "./md5sums", "source2": "./md5sums", "comments": ["Files differ"], "unified_diff": null}]}]}]}, {"source1": "data.tar.xz", "source2": "data.tar.xz", "unified_diff": null, "details": [{"source1": "data.tar", "source2": "data.tar", "unified_diff": null, "details": [{"source1": "file list", "source2": "file list", "unified_diff": "@@ -2708,15 +2708,15 @@\n -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\n -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\n -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\n -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\n -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\n -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\n -rw-r--r-- 0 root (0) root (0) 2991 2024-10-29 12:18:35.000000 ./usr/share/doc/cargo/reference/help.html\n--rw-r--r-- 0 root (0) root (0) 3273 2024-10-29 12:18:35.000000 ./usr/share/doc/cargo/reference/index.html\n+-rw-r--r-- 0 root (0) root (0) 3266 2024-10-29 12:18:35.000000 ./usr/share/doc/cargo/reference/index.html\n drwxr-xr-x 0 root (0) root (0) 0 2024-10-29 12:18:35.000000 ./usr/share/doc/cargo/reference/mdman/\n -rw-r--r-- 0 root (0) root (0) 5174 2024-10-29 12:18:35.000000 ./usr/share/doc/cargo/reference/mdman/all.html\n -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\n -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\n -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\n -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\n -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\n"}, {"source1": "./usr/share/doc/cargo/reference/index.html", "source2": "./usr/share/doc/cargo/reference/index.html", "unified_diff": "@@ -1,2 +1,2 @@\n-Index of crates

List of all crates

\n-\n+Index of crates

List of all crates

\n+\n"}]}]}]}, {"source1": "rust-doc_1.82.0+dfsg1-2_all.deb", "source2": "rust-doc_1.82.0+dfsg1-2_all.deb", "unified_diff": null, "details": [{"source1": "file list", "source2": "file list", "unified_diff": "@@ -1,3 +1,3 @@\n -rw-r--r-- 0 0 0 4 2024-10-29 12:18:35.000000 debian-binary\n--rw-r--r-- 0 0 0 939616 2024-10-29 12:18:35.000000 control.tar.xz\n--rw-r--r-- 0 0 0 20995264 2024-10-29 12:18:35.000000 data.tar.xz\n+-rw-r--r-- 0 0 0 939644 2024-10-29 12:18:35.000000 control.tar.xz\n+-rw-r--r-- 0 0 0 20976968 2024-10-29 12:18:35.000000 data.tar.xz\n"}, {"source1": "control.tar.xz", "source2": "control.tar.xz", "unified_diff": null, "details": [{"source1": "control.tar", "source2": "control.tar", "unified_diff": null, "details": [{"source1": "./control", "source2": "./control", "unified_diff": "@@ -1,13 +1,13 @@\n Package: rust-doc\n Source: rustc\n Version: 1.82.0+dfsg1-2\n Architecture: all\n Maintainer: Debian Rust Maintainers \n-Installed-Size: 621583\n+Installed-Size: 621589\n Depends: libjs-jquery, libjs-highlight.js, libjs-mathjax, fonts-open-sans, fonts-font-awesome\n Recommends: cargo-doc\n Section: doc\n Priority: optional\n Homepage: http://www.rust-lang.org/\n Description: Rust systems programming language - Documentation\n Rust is a curly-brace, block-structured expression language. It\n"}, {"source1": "./md5sums", "source2": "./md5sums", "unified_diff": null, "details": [{"source1": "./md5sums", "source2": "./md5sums", "comments": ["Files differ"], "unified_diff": null}]}]}]}, {"source1": "data.tar.xz", "source2": "data.tar.xz", "unified_diff": null, "details": [{"source1": "data.tar", "source2": "data.tar", "unified_diff": null, "details": [{"source1": "file list", "source2": "file list", "unified_diff": "@@ -39710,48 +39710,48 @@\n -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\n drwxr-xr-x 0 root (0) root (0) 0 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/proc_macro/\n -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\n 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/\n -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\n -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\n -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\n--rw-r--r-- 0 root (0) root (0) 31291 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.Delimiter.html\n--rw-r--r-- 0 root (0) root (0) 27617 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.Level.html\n--rw-r--r-- 0 root (0) root (0) 30873 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.Spacing.html\n--rw-r--r-- 0 root (0) root (0) 46339 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.TokenTree.html\n--rw-r--r-- 0 root (0) root (0) 4276 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/proc_macro/fn.is_available.html\n+-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\n+-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\n+-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\n+-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\n+-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\n -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\n -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\n -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\n -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\n -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\n 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/\n -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\n -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\n -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\n--rw-r--r-- 0 root (0) root (0) 44868 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Diagnostic.html\n--rw-r--r-- 0 root (0) root (0) 26269 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.ExpandError.html\n--rw-r--r-- 0 root (0) root (0) 35923 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Group.html\n--rw-r--r-- 0 root (0) root (0) 34112 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Ident.html\n--rw-r--r-- 0 root (0) root (0) 26400 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.LexError.html\n--rw-r--r-- 0 root (0) root (0) 76390 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Literal.html\n--rw-r--r-- 0 root (0) root (0) 38610 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Punct.html\n--rw-r--r-- 0 root (0) root (0) 30171 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.SourceFile.html\n--rw-r--r-- 0 root (0) root (0) 45950 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Span.html\n--rw-r--r-- 0 root (0) root (0) 53194 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.TokenStream.html\n+-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\n+-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\n+-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\n+-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\n+-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\n+-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\n+-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\n+-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\n+-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\n+-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\n 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/\n -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\n -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\n--rw-r--r-- 0 root (0) root (0) 133385 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/proc_macro/token_stream/struct.IntoIter.html\n+-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\n 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/\n--rw-r--r-- 0 root (0) root (0) 5291 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_env/fn.var.html\n+-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\n -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\n -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\n 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/\n--rw-r--r-- 0 root (0) root (0) 4032 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_path/fn.path.html\n+-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\n -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\n -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\n -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\n drwxr-xr-x 0 root (0) root (0) 0 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/reference/\n -rw-r--r-- 0 root (0) root (0) 72 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/reference/.nojekyll\n -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\n -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\n@@ -44292,15 +44292,15 @@\n -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\n 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/\n -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\n -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\n 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/\n -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\n -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\n--rw-r--r-- 0 root (0) root (0) 62781 2024-10-29 12:18:35.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.PartialEq.js\n+-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\n -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\n 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/\n 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/\n -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\n -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\n -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\n -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\n"}, {"source1": "./usr/share/doc/rust-doc/html/proc_macro/enum.Delimiter.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/enum.Delimiter.html", "unified_diff": "@@ -16,21 +16,21 @@\n

Note: rustc currently can ignore the grouping of tokens delimited by None in the output\n of a proc_macro. Only None-delimited groups created by a macro_rules macro in the input\n of a proc_macro macro are preserved, and only in very specific circumstances.\n Any None-delimited groups (re)created by a proc_macro will therefore not preserve\n operator priorities as indicated above. The other Delimiter variants should be used\n instead in this context. This is a rustc bug. For details, see\n rust-lang/rust#67062.

\n-

Trait Implementations\u00a7

1.29.0 \u00b7 source\u00a7

impl Clone for Delimiter

source\u00a7

fn clone(&self) -> Delimiter

Returns a copy of the value. Read more
1.0.0 \u00b7 source\u00a7

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.29.0 \u00b7 source\u00a7

impl Debug for Delimiter

source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.29.0 \u00b7 source\u00a7

impl PartialEq for Delimiter

source\u00a7

fn eq(&self, other: &Delimiter) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 \u00b7 source\u00a7

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient,\n+

Trait Implementations\u00a7

1.29.0 \u00b7 source\u00a7

impl Clone for Delimiter

source\u00a7

fn clone(&self) -> Delimiter

Returns a copy of the value. Read more
1.0.0 \u00b7 source\u00a7

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.29.0 \u00b7 source\u00a7

impl Debug for Delimiter

source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.29.0 \u00b7 source\u00a7

impl PartialEq for Delimiter

source\u00a7

fn eq(&self, other: &Delimiter) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 \u00b7 source\u00a7

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient,\n and should not be overridden without very good reason.
1.29.0 \u00b7 source\u00a7

impl Copy for Delimiter

1.29.0 \u00b7 source\u00a7

impl Eq for Delimiter

1.29.0 \u00b7 source\u00a7

impl StructuralPartialEq for Delimiter

Auto Trait Implementations\u00a7

\u00a7

impl Freeze for Delimiter

\u00a7

impl RefUnwindSafe for Delimiter

\u00a7

impl Send for Delimiter

\u00a7

impl Sync for Delimiter

\u00a7

impl Unpin for Delimiter

\u00a7

impl UnwindSafe for Delimiter

Blanket Implementations\u00a7

source\u00a7

impl<T> Any for T
where\n T: 'static + ?Sized,

source\u00a7

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source\u00a7

impl<T> Borrow<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n- T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n+ T: ?Sized,
source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n+ T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n+ T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n
source\u00a7

impl<T, U> Into<U> for T
where\n U: From<T>,

source\u00a7

fn into(self) -> U

Calls U::from(self).

\n

That is, this conversion is whatever the implementation of\n From<T> for U chooses to do.

\n
source\u00a7

impl<T> ToOwned for T
where\n- T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n+ T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n U: Into<T>,

source\u00a7

type Error = Infallible

The type returned in the event of a conversion error.
source\u00a7

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source\u00a7

impl<T, U> TryInto<U> for T
where\n U: TryFrom<T>,

source\u00a7

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source\u00a7

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\n"}, {"source1": "./usr/share/doc/rust-doc/html/proc_macro/enum.Level.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/enum.Level.html", "unified_diff": "@@ -6,18 +6,18 @@\n }
\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)
Expand description

An enum representing a diagnostic level.

\n

Variants (Non-exhaustive)\u00a7

This enum is marked as non-exhaustive
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.
\u00a7

Error

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)

An error.

\n
\u00a7

Warning

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)

A warning.

\n
\u00a7

Note

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)

A note.

\n
\u00a7

Help

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)

A help message.

\n

Trait Implementations\u00a7

source\u00a7

impl Clone for Level

source\u00a7

fn clone(&self) -> Level

Returns a copy of the value. Read more
1.0.0 \u00b7 source\u00a7

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source\u00a7

impl Debug for Level

source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source\u00a7

impl Copy for Level

Auto Trait Implementations\u00a7

\u00a7

impl Freeze for Level

\u00a7

impl RefUnwindSafe for Level

\u00a7

impl Send for Level

\u00a7

impl Sync for Level

\u00a7

impl Unpin for Level

\u00a7

impl UnwindSafe for Level

Blanket Implementations\u00a7

source\u00a7

impl<T> Any for T
where\n T: 'static + ?Sized,

source\u00a7

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source\u00a7

impl<T> Borrow<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n- T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n+ T: ?Sized,
source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n+ T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n+ T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n
source\u00a7

impl<T, U> Into<U> for T
where\n U: From<T>,

source\u00a7

fn into(self) -> U

Calls U::from(self).

\n

That is, this conversion is whatever the implementation of\n From<T> for U chooses to do.

\n
source\u00a7

impl<T> ToOwned for T
where\n- T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n+ T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n U: Into<T>,

source\u00a7

type Error = Infallible

The type returned in the event of a conversion error.
source\u00a7

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source\u00a7

impl<T, U> TryInto<U> for T
where\n U: TryFrom<T>,

source\u00a7

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source\u00a7

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\n"}, {"source1": "./usr/share/doc/rust-doc/html/proc_macro/enum.Spacing.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/enum.Spacing.html", "unified_diff": "@@ -15,21 +15,21 @@\n \n

This list may be extended in the future to enable more token combinations.

\n
\u00a71.29.0

Alone

A Punct token cannot join with the following token to form a multi-character operator.

\n

Alone punctuation tokens can be followed by any other tokens. In token streams parsed\n from source code, the compiler will set spacing to Alone in all cases not covered by the\n conditions for Joint above. E.g. + is Alone in + =, +ident and +(). In\n particular, tokens not followed by anything will be marked as Alone.

\n-

Trait Implementations\u00a7

1.29.0 \u00b7 source\u00a7

impl Clone for Spacing

source\u00a7

fn clone(&self) -> Spacing

Returns a copy of the value. Read more
1.0.0 \u00b7 source\u00a7

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.29.0 \u00b7 source\u00a7

impl Debug for Spacing

source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.29.0 \u00b7 source\u00a7

impl PartialEq for Spacing

source\u00a7

fn eq(&self, other: &Spacing) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 \u00b7 source\u00a7

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient,\n+

Trait Implementations\u00a7

1.29.0 \u00b7 source\u00a7

impl Clone for Spacing

source\u00a7

fn clone(&self) -> Spacing

Returns a copy of the value. Read more
1.0.0 \u00b7 source\u00a7

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.29.0 \u00b7 source\u00a7

impl Debug for Spacing

source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.29.0 \u00b7 source\u00a7

impl PartialEq for Spacing

source\u00a7

fn eq(&self, other: &Spacing) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 \u00b7 source\u00a7

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient,\n and should not be overridden without very good reason.
1.29.0 \u00b7 source\u00a7

impl Copy for Spacing

1.29.0 \u00b7 source\u00a7

impl Eq for Spacing

1.29.0 \u00b7 source\u00a7

impl StructuralPartialEq for Spacing

Auto Trait Implementations\u00a7

Blanket Implementations\u00a7

source\u00a7

impl<T> Any for T
where\n T: 'static + ?Sized,

source\u00a7

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source\u00a7

impl<T> Borrow<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n- T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n+ T: ?Sized,
source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n+ T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n+ T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n
source\u00a7

impl<T, U> Into<U> for T
where\n U: From<T>,

source\u00a7

fn into(self) -> U

Calls U::from(self).

\n

That is, this conversion is whatever the implementation of\n From<T> for U chooses to do.

\n
source\u00a7

impl<T> ToOwned for T
where\n- T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n+ T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n U: Into<T>,

source\u00a7

type Error = Infallible

The type returned in the event of a conversion error.
source\u00a7

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source\u00a7

impl<T, U> TryInto<U> for T
where\n U: TryFrom<T>,

source\u00a7

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source\u00a7

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\n"}, {"source1": "./usr/share/doc/rust-doc/html/proc_macro/enum.TokenTree.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/enum.TokenTree.html", "unified_diff": "@@ -21,23 +21,23 @@\n

Note: the exact form of the output is subject to change, e.g. there might\n be changes in the whitespace used between tokens. Therefore, you should\n not do any kind of simple substring matching on the output string (as\n produced by to_string) to implement a proc macro, because that matching\n might stop working if such changes happen. Instead, you should work at the\n TokenTree level, e.g. matching against TokenTree::Ident,\n TokenTree::Punct, or TokenTree::Literal.

\n-
source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.30.0 \u00b7 source\u00a7

impl Extend<TokenTree> for TokenStream

source\u00a7

fn extend<I: IntoIterator<Item = TokenTree>>(&mut self, trees: I)

Extends a collection with the contents of an iterator. Read more
source\u00a7

fn extend_one(&mut self, item: A)

\ud83d\udd2cThis is a nightly-only experimental API. (extend_one #72631)
Extends a collection with exactly one element.
source\u00a7

fn extend_reserve(&mut self, additional: usize)

\ud83d\udd2cThis is a nightly-only experimental API. (extend_one #72631)
Reserves capacity in a collection for the given number of additional elements. Read more
1.29.0 \u00b7 source\u00a7

impl From<Group> for TokenTree

source\u00a7

fn from(g: Group) -> TokenTree

Converts to this type from the input type.
1.29.0 \u00b7 source\u00a7

impl From<Ident> for TokenTree

source\u00a7

fn from(g: Ident) -> TokenTree

Converts to this type from the input type.
1.29.0 \u00b7 source\u00a7

impl From<Literal> for TokenTree

source\u00a7

fn from(g: Literal) -> TokenTree

Converts to this type from the input type.
1.29.0 \u00b7 source\u00a7

impl From<Punct> for TokenTree

source\u00a7

fn from(g: Punct) -> TokenTree

Converts to this type from the input type.
1.29.0 \u00b7 source\u00a7

impl From<TokenTree> for TokenStream

Creates a token stream containing a single token tree.

\n+
source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.30.0 \u00b7 source\u00a7

impl Extend<TokenTree> for TokenStream

source\u00a7

fn extend<I: IntoIterator<Item = TokenTree>>(&mut self, trees: I)

Extends a collection with the contents of an iterator. Read more
source\u00a7

fn extend_one(&mut self, item: A)

\ud83d\udd2cThis is a nightly-only experimental API. (extend_one #72631)
Extends a collection with exactly one element.
source\u00a7

fn extend_reserve(&mut self, additional: usize)

\ud83d\udd2cThis is a nightly-only experimental API. (extend_one #72631)
Reserves capacity in a collection for the given number of additional elements. Read more
1.29.0 \u00b7 source\u00a7

impl From<Group> for TokenTree

source\u00a7

fn from(g: Group) -> TokenTree

Converts to this type from the input type.
1.29.0 \u00b7 source\u00a7

impl From<Ident> for TokenTree

source\u00a7

fn from(g: Ident) -> TokenTree

Converts to this type from the input type.
1.29.0 \u00b7 source\u00a7

impl From<Literal> for TokenTree

source\u00a7

fn from(g: Literal) -> TokenTree

Converts to this type from the input type.
1.29.0 \u00b7 source\u00a7

impl From<Punct> for TokenTree

source\u00a7

fn from(g: Punct) -> TokenTree

Converts to this type from the input type.
1.29.0 \u00b7 source\u00a7

impl From<TokenTree> for TokenStream

Creates a token stream containing a single token tree.

\n
source\u00a7

fn from(tree: TokenTree) -> TokenStream

Converts to this type from the input type.
1.29.0 \u00b7 source\u00a7

impl FromIterator<TokenTree> for TokenStream

Collects a number of token trees into a single stream.

\n
source\u00a7

fn from_iter<I: IntoIterator<Item = TokenTree>>(trees: I) -> Self

Creates a value from an iterator. Read more
1.29.0 \u00b7 source\u00a7

impl !Send for TokenTree

1.29.0 \u00b7 source\u00a7

impl !Sync for TokenTree

Auto Trait Implementations\u00a7

\u00a7

impl Freeze for TokenTree

\u00a7

impl RefUnwindSafe for TokenTree

\u00a7

impl Unpin for TokenTree

\u00a7

impl UnwindSafe for TokenTree

Blanket Implementations\u00a7

source\u00a7

impl<T> Any for T
where\n T: 'static + ?Sized,

source\u00a7

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source\u00a7

impl<T> Borrow<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n- T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n+ T: ?Sized,
source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n+ T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n+ T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n
source\u00a7

impl<T, U> Into<U> for T
where\n U: From<T>,

source\u00a7

fn into(self) -> U

Calls U::from(self).

\n

That is, this conversion is whatever the implementation of\n From<T> for U chooses to do.

\n
source\u00a7

impl<T> ToOwned for T
where\n- T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T> ToString for T
where\n+ T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T> ToString for T
where\n T: Display + ?Sized,

source\u00a7

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n U: Into<T>,

source\u00a7

type Error = Infallible

The type returned in the event of a conversion error.
source\u00a7

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source\u00a7

impl<T, U> TryInto<U> for T
where\n U: TryFrom<T>,

source\u00a7

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source\u00a7

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\n"}, {"source1": "./usr/share/doc/rust-doc/html/proc_macro/fn.is_available.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/fn.is_available.html", "unified_diff": "@@ -1,8 +1,8 @@\n-is_available in proc_macro - Rust

Function proc_macro::is_available

1.57.0 \u00b7 source \u00b7
pub fn is_available() -> bool
Expand description

Determines whether proc_macro has been made accessible to the currently\n+is_available in proc_macro - Rust

Function proc_macro::is_available

1.57.0 \u00b7 source \u00b7
pub fn is_available() -> bool
Expand description

Determines whether proc_macro has been made accessible to the currently\n running program.

\n

The proc_macro crate is only intended for use inside the implementation of\n procedural macros. All the functions in this crate panic if invoked from\n outside of a procedural macro, such as from a build script or unit test or\n ordinary Rust binary.

\n

With consideration for Rust libraries that are designed to support both\n macro and non-macro use cases, proc_macro::is_available() provides a\n"}, {"source1": "./usr/share/doc/rust-doc/html/proc_macro/struct.Diagnostic.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/struct.Diagnostic.html", "unified_diff": "@@ -19,26 +19,26 @@\n

source

pub fn note<T: Into<String>>(self, message: T) -> Diagnostic

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Adds a new child diagnostic message to self with the Level::Note level, and the given message.

\n
source

pub fn span_help<S, T>(self, spans: S, message: T) -> Diagnostic
where\n S: MultiSpan,\n T: Into<String>,

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Adds a new child diagnostics message to self with the Level::Help level, and the given spans and message.

\n
source

pub fn help<T: Into<String>>(self, message: T) -> Diagnostic

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Adds a new child diagnostic message to self with the Level::Help level, and the given message.

\n
source

pub fn level(&self) -> Level

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Returns the diagnostic level for self.

\n
source

pub fn set_level(&mut self, level: Level)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Sets the level in self to level.

\n-
source

pub fn message(&self) -> &str

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Returns the message in self.

\n+
source

pub fn message(&self) -> &str

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Returns the message in self.

\n
source

pub fn set_message<T: Into<String>>(&mut self, message: T)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Sets the message in self to message.

\n
source

pub fn spans(&self) -> &[Span]

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Returns the Spans in self.

\n
source

pub fn set_spans<S: MultiSpan>(&mut self, spans: S)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Sets the Spans in self to spans.

\n
source

pub fn children(&self) -> Children<'_>

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Returns an iterator over the children diagnostics of self.

\n
source

pub fn emit(self)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Emit the diagnostic.

\n

Trait Implementations\u00a7

source\u00a7

impl Clone for Diagnostic

source\u00a7

fn clone(&self) -> Diagnostic

Returns a copy of the value. Read more
1.0.0 \u00b7 source\u00a7

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source\u00a7

impl Debug for Diagnostic

source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations\u00a7

Blanket Implementations\u00a7

source\u00a7

impl<T> Any for T
where\n T: 'static + ?Sized,

source\u00a7

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source\u00a7

impl<T> Borrow<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n- T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n+ T: ?Sized,
source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n+ T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n+ T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n
source\u00a7

impl<T, U> Into<U> for T
where\n U: From<T>,

source\u00a7

fn into(self) -> U

Calls U::from(self).

\n

That is, this conversion is whatever the implementation of\n From<T> for U chooses to do.

\n
source\u00a7

impl<T> ToOwned for T
where\n- T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n+ T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n U: Into<T>,

source\u00a7

type Error = Infallible

The type returned in the event of a conversion error.
source\u00a7

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source\u00a7

impl<T, U> TryInto<U> for T
where\n U: TryFrom<T>,

source\u00a7

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source\u00a7

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\n"}, {"source1": "./usr/share/doc/rust-doc/html/proc_macro/struct.ExpandError.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/struct.ExpandError.html", "unified_diff": "@@ -1,12 +1,12 @@\n ExpandError in proc_macro - Rust

Struct proc_macro::ExpandError

source \u00b7
#[non_exhaustive]
pub struct ExpandError;
\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_expand #90765)
Expand description

Error returned from TokenStream::expand_expr.

\n-

Trait Implementations\u00a7

source\u00a7

impl Debug for ExpandError

source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source\u00a7

impl Display for ExpandError

source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source\u00a7

impl Error for ExpandError

1.30.0 \u00b7 source\u00a7

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 \u00b7 source\u00a7

fn description(&self) -> &str

\ud83d\udc4eDeprecated since 1.42.0: use the Display impl or to_string()
1.0.0 \u00b7 source\u00a7

fn cause(&self) -> Option<&dyn Error>

\ud83d\udc4eDeprecated since 1.33.0: replaced by Error::source, which can support downcasting
source\u00a7

fn provide<'a>(&'a self, request: &mut Request<'a>)

\ud83d\udd2cThis is a nightly-only experimental API. (error_generic_member_access #99301)
Provides type-based access to context intended for error reports. Read more
source\u00a7

impl !Send for ExpandError

source\u00a7

impl !Sync for ExpandError

Auto Trait Implementations\u00a7

Blanket Implementations\u00a7

source\u00a7

impl<T> Any for T
where\n+

Trait Implementations\u00a7

source\u00a7

impl Debug for ExpandError

source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source\u00a7

impl Display for ExpandError

source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source\u00a7

impl Error for ExpandError

1.30.0 \u00b7 source\u00a7

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 \u00b7 source\u00a7

fn description(&self) -> &str

\ud83d\udc4eDeprecated since 1.42.0: use the Display impl or to_string()
1.0.0 \u00b7 source\u00a7

fn cause(&self) -> Option<&dyn Error>

\ud83d\udc4eDeprecated since 1.33.0: replaced by Error::source, which can support downcasting
source\u00a7

fn provide<'a>(&'a self, request: &mut Request<'a>)

\ud83d\udd2cThis is a nightly-only experimental API. (error_generic_member_access #99301)
Provides type-based access to context intended for error reports. Read more
source\u00a7

impl !Send for ExpandError

source\u00a7

impl !Sync for ExpandError

Auto Trait Implementations\u00a7

Blanket Implementations\u00a7

source\u00a7

impl<T> Any for T
where\n T: 'static + ?Sized,

source\u00a7

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source\u00a7

impl<T> Borrow<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n+ T: ?Sized,
source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n+ T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n
source\u00a7

impl<T, U> Into<U> for T
where\n U: From<T>,

source\u00a7

fn into(self) -> U

Calls U::from(self).

\n

That is, this conversion is whatever the implementation of\n From<T> for U chooses to do.

\n
source\u00a7

impl<T> ToString for T
where\n T: Display + ?Sized,

source\u00a7

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n U: Into<T>,

source\u00a7

type Error = Infallible

The type returned in the event of a conversion error.
source\u00a7

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source\u00a7

impl<T, U> TryInto<U> for T
where\n"}, {"source1": "./usr/share/doc/rust-doc/html/proc_macro/struct.Group.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/struct.Group.html", "unified_diff": "@@ -24,19 +24,19 @@\n by this group, but rather it will only set the span of the delimiter\n tokens at the level of the Group.

\n

Trait Implementations\u00a7

1.29.0 \u00b7 source\u00a7

impl Clone for Group

source\u00a7

fn clone(&self) -> Group

Returns a copy of the value. Read more
1.0.0 \u00b7 source\u00a7

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.29.0 \u00b7 source\u00a7

impl Debug for Group

source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.29.0 \u00b7 source\u00a7

impl Display for Group

Prints the group as a string that should be losslessly convertible back\n into the same group (modulo spans), except for possibly TokenTree::Groups\n with Delimiter::None delimiters.

\n
source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.29.0 \u00b7 source\u00a7

impl From<Group> for TokenTree

source\u00a7

fn from(g: Group) -> TokenTree

Converts to this type from the input type.
1.29.0 \u00b7 source\u00a7

impl !Send for Group

1.29.0 \u00b7 source\u00a7

impl !Sync for Group

Auto Trait Implementations\u00a7

Blanket Implementations\u00a7

source\u00a7

impl<T> Any for T
where\n T: 'static + ?Sized,

source\u00a7

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source\u00a7

impl<T> Borrow<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n- T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n+ T: ?Sized,
source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n+ T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n+ T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n
source\u00a7

impl<T, U> Into<U> for T
where\n U: From<T>,

source\u00a7

fn into(self) -> U

Calls U::from(self).

\n

That is, this conversion is whatever the implementation of\n From<T> for U chooses to do.

\n
source\u00a7

impl<T> ToOwned for T
where\n- T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T> ToString for T
where\n+ T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T> ToString for T
where\n T: Display + ?Sized,

source\u00a7

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n U: Into<T>,

source\u00a7

type Error = Infallible

The type returned in the event of a conversion error.
source\u00a7

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source\u00a7

impl<T, U> TryInto<U> for T
where\n U: TryFrom<T>,

source\u00a7

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source\u00a7

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\n"}, {"source1": "./usr/share/doc/rust-doc/html/proc_macro/struct.Ident.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/struct.Ident.html", "unified_diff": "@@ -1,39 +1,39 @@\n Ident in proc_macro - Rust

Struct proc_macro::Ident

1.29.0 \u00b7 source \u00b7
pub struct Ident(/* private fields */);
Expand description

An identifier (ident).

\n-

Implementations\u00a7

source\u00a7

impl Ident

1.29.0 \u00b7 source

pub fn new(string: &str, span: Span) -> Ident

Creates a new Ident with the given string as well as the specified\n+

Implementations\u00a7

source\u00a7

impl Ident

1.29.0 \u00b7 source

pub fn new(string: &str, span: Span) -> Ident

Creates a new Ident with the given string as well as the specified\n span.\n The string argument must be a valid identifier permitted by the\n language (including keywords, e.g. self or fn). Otherwise, the function will panic.

\n

Note that span, currently in rustc, configures the hygiene information\n for this identifier.

\n

As of this time Span::call_site() explicitly opts-in to \u201ccall-site\u201d hygiene\n meaning that identifiers created with this span will be resolved as if they were written\n directly at the location of the macro call, and other code at the macro call site will be\n able to refer to them as well.

\n

Later spans like Span::def_site() will allow to opt-in to \u201cdefinition-site\u201d hygiene\n meaning that identifiers created with this span will be resolved at the location of the\n macro definition and other code at the macro call site will not be able to refer to them.

\n

Due to the current importance of hygiene this constructor, unlike other\n tokens, requires a Span to be specified at construction.

\n-
1.47.0 \u00b7 source

pub fn new_raw(string: &str, span: Span) -> Ident

Same as Ident::new, but creates a raw identifier (r#ident).\n+

1.47.0 \u00b7 source

pub fn new_raw(string: &str, span: Span) -> Ident

Same as Ident::new, but creates a raw identifier (r#ident).\n The string argument be a valid identifier permitted by the language\n (including keywords, e.g. fn). Keywords which are usable in path segments\n (e.g. self, super) are not supported, and will cause a panic.

\n
1.29.0 \u00b7 source

pub fn span(&self) -> Span

Returns the span of this Ident, encompassing the entire string returned\n by to_string.

\n
1.29.0 \u00b7 source

pub fn set_span(&mut self, span: Span)

Configures the span of this Ident, possibly changing its hygiene context.

\n

Trait Implementations\u00a7

1.29.0 \u00b7 source\u00a7

impl Clone for Ident

source\u00a7

fn clone(&self) -> Ident

Returns a copy of the value. Read more
1.0.0 \u00b7 source\u00a7

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.29.0 \u00b7 source\u00a7

impl Debug for Ident

source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.29.0 \u00b7 source\u00a7

impl Display for Ident

Prints the identifier as a string that should be losslessly convertible back\n into the same identifier.

\n
source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.29.0 \u00b7 source\u00a7

impl From<Ident> for TokenTree

source\u00a7

fn from(g: Ident) -> TokenTree

Converts to this type from the input type.

Auto Trait Implementations\u00a7

Blanket Implementations\u00a7

source\u00a7

impl<T> Any for T
where\n T: 'static + ?Sized,

source\u00a7

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source\u00a7

impl<T> Borrow<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n- T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n+ T: ?Sized,
source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n+ T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n+ T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n
source\u00a7

impl<T, U> Into<U> for T
where\n U: From<T>,

source\u00a7

fn into(self) -> U

Calls U::from(self).

\n

That is, this conversion is whatever the implementation of\n From<T> for U chooses to do.

\n
source\u00a7

impl<T> ToOwned for T
where\n- T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T> ToString for T
where\n+ T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T> ToString for T
where\n T: Display + ?Sized,

source\u00a7

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n U: Into<T>,

source\u00a7

type Error = Infallible

The type returned in the event of a conversion error.
source\u00a7

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source\u00a7

impl<T, U> TryInto<U> for T
where\n U: TryFrom<T>,

source\u00a7

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source\u00a7

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\n"}, {"source1": "./usr/share/doc/rust-doc/html/proc_macro/struct.LexError.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/struct.LexError.html", "unified_diff": "@@ -1,12 +1,12 @@\n LexError in proc_macro - Rust

Struct proc_macro::LexError

1.15.0 \u00b7 source \u00b7
#[non_exhaustive]
pub struct LexError;
Expand description

Error returned from TokenStream::from_str.

\n-

Trait Implementations\u00a7

1.15.0 \u00b7 source\u00a7

impl Debug for LexError

source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.44.0 \u00b7 source\u00a7

impl Display for LexError

source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.44.0 \u00b7 source\u00a7

impl Error for LexError

1.30.0 \u00b7 source\u00a7

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 \u00b7 source\u00a7

fn description(&self) -> &str

\ud83d\udc4eDeprecated since 1.42.0: use the Display impl or to_string()
1.0.0 \u00b7 source\u00a7

fn cause(&self) -> Option<&dyn Error>

\ud83d\udc4eDeprecated since 1.33.0: replaced by Error::source, which can support downcasting
source\u00a7

fn provide<'a>(&'a self, request: &mut Request<'a>)

\ud83d\udd2cThis is a nightly-only experimental API. (error_generic_member_access #99301)
Provides type-based access to context intended for error reports. Read more
1.15.0 \u00b7 source\u00a7

impl !Send for LexError

1.15.0 \u00b7 source\u00a7

impl !Sync for LexError

Auto Trait Implementations\u00a7

Blanket Implementations\u00a7

source\u00a7

impl<T> Any for T
where\n+

Trait Implementations\u00a7

1.15.0 \u00b7 source\u00a7

impl Debug for LexError

source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.44.0 \u00b7 source\u00a7

impl Display for LexError

source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.44.0 \u00b7 source\u00a7

impl Error for LexError

1.30.0 \u00b7 source\u00a7

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 \u00b7 source\u00a7

fn description(&self) -> &str

\ud83d\udc4eDeprecated since 1.42.0: use the Display impl or to_string()
1.0.0 \u00b7 source\u00a7

fn cause(&self) -> Option<&dyn Error>

\ud83d\udc4eDeprecated since 1.33.0: replaced by Error::source, which can support downcasting
source\u00a7

fn provide<'a>(&'a self, request: &mut Request<'a>)

\ud83d\udd2cThis is a nightly-only experimental API. (error_generic_member_access #99301)
Provides type-based access to context intended for error reports. Read more
1.15.0 \u00b7 source\u00a7

impl !Send for LexError

1.15.0 \u00b7 source\u00a7

impl !Sync for LexError

Auto Trait Implementations\u00a7

Blanket Implementations\u00a7

source\u00a7

impl<T> Any for T
where\n T: 'static + ?Sized,

source\u00a7

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source\u00a7

impl<T> Borrow<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n+ T: ?Sized,
source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n+ T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n
source\u00a7

impl<T, U> Into<U> for T
where\n U: From<T>,

source\u00a7

fn into(self) -> U

Calls U::from(self).

\n

That is, this conversion is whatever the implementation of\n From<T> for U chooses to do.

\n
source\u00a7

impl<T> ToString for T
where\n T: Display + ?Sized,

source\u00a7

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n U: Into<T>,

source\u00a7

type Error = Infallible

The type returned in the event of a conversion error.
source\u00a7

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source\u00a7

impl<T, U> TryInto<U> for T
where\n"}, {"source1": "./usr/share/doc/rust-doc/html/proc_macro/struct.Literal.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/struct.Literal.html", "unified_diff": "@@ -1,315 +1,315 @@\n Literal in proc_macro - Rust

Struct proc_macro::Literal

1.29.0 \u00b7 source \u00b7
pub struct Literal(/* private fields */);
Expand description

A literal string (\"hello\"), byte string (b\"hello\"),\n character ('a'), byte character (b'a'), an integer or floating point number\n with or without a suffix (1, 1u8, 2.3, 2.3f32).\n Boolean literals like true and false do not belong here, they are Idents.

\n-

Implementations\u00a7

source\u00a7

impl Literal

1.29.0 \u00b7 source

pub fn u8_suffixed(n: u8) -> Literal

Creates a new suffixed integer literal with the specified value.

\n+

Implementations\u00a7

source\u00a7

impl Literal

1.29.0 \u00b7 source

pub fn u8_suffixed(n: u8) -> Literal

Creates a new suffixed integer literal with the specified value.

\n

This function will create an integer like 1u32 where the integer\n value specified is the first part of the token and the integral is\n also suffixed at the end.\n Literals created from negative numbers might not survive round-trips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn u16_suffixed(n: u16) -> Literal

Creates a new suffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn u16_suffixed(n: u16) -> Literal

Creates a new suffixed integer literal with the specified value.

\n

This function will create an integer like 1u32 where the integer\n value specified is the first part of the token and the integral is\n also suffixed at the end.\n Literals created from negative numbers might not survive round-trips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn u32_suffixed(n: u32) -> Literal

Creates a new suffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn u32_suffixed(n: u32) -> Literal

Creates a new suffixed integer literal with the specified value.

\n

This function will create an integer like 1u32 where the integer\n value specified is the first part of the token and the integral is\n also suffixed at the end.\n Literals created from negative numbers might not survive round-trips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn u64_suffixed(n: u64) -> Literal

Creates a new suffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn u64_suffixed(n: u64) -> Literal

Creates a new suffixed integer literal with the specified value.

\n

This function will create an integer like 1u32 where the integer\n value specified is the first part of the token and the integral is\n also suffixed at the end.\n Literals created from negative numbers might not survive round-trips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn u128_suffixed(n: u128) -> Literal

Creates a new suffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn u128_suffixed(n: u128) -> Literal

Creates a new suffixed integer literal with the specified value.

\n

This function will create an integer like 1u32 where the integer\n value specified is the first part of the token and the integral is\n also suffixed at the end.\n Literals created from negative numbers might not survive round-trips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn usize_suffixed(n: usize) -> Literal

Creates a new suffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn usize_suffixed(n: usize) -> Literal

Creates a new suffixed integer literal with the specified value.

\n

This function will create an integer like 1u32 where the integer\n value specified is the first part of the token and the integral is\n also suffixed at the end.\n Literals created from negative numbers might not survive round-trips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn i8_suffixed(n: i8) -> Literal

Creates a new suffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn i8_suffixed(n: i8) -> Literal

Creates a new suffixed integer literal with the specified value.

\n

This function will create an integer like 1u32 where the integer\n value specified is the first part of the token and the integral is\n also suffixed at the end.\n Literals created from negative numbers might not survive round-trips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn i16_suffixed(n: i16) -> Literal

Creates a new suffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn i16_suffixed(n: i16) -> Literal

Creates a new suffixed integer literal with the specified value.

\n

This function will create an integer like 1u32 where the integer\n value specified is the first part of the token and the integral is\n also suffixed at the end.\n Literals created from negative numbers might not survive round-trips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn i32_suffixed(n: i32) -> Literal

Creates a new suffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn i32_suffixed(n: i32) -> Literal

Creates a new suffixed integer literal with the specified value.

\n

This function will create an integer like 1u32 where the integer\n value specified is the first part of the token and the integral is\n also suffixed at the end.\n Literals created from negative numbers might not survive round-trips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn i64_suffixed(n: i64) -> Literal

Creates a new suffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn i64_suffixed(n: i64) -> Literal

Creates a new suffixed integer literal with the specified value.

\n

This function will create an integer like 1u32 where the integer\n value specified is the first part of the token and the integral is\n also suffixed at the end.\n Literals created from negative numbers might not survive round-trips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn i128_suffixed(n: i128) -> Literal

Creates a new suffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn i128_suffixed(n: i128) -> Literal

Creates a new suffixed integer literal with the specified value.

\n

This function will create an integer like 1u32 where the integer\n value specified is the first part of the token and the integral is\n also suffixed at the end.\n Literals created from negative numbers might not survive round-trips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn isize_suffixed(n: isize) -> Literal

Creates a new suffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn isize_suffixed(n: isize) -> Literal

Creates a new suffixed integer literal with the specified value.

\n

This function will create an integer like 1u32 where the integer\n value specified is the first part of the token and the integral is\n also suffixed at the end.\n Literals created from negative numbers might not survive round-trips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn u8_unsuffixed(n: u8) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn u8_unsuffixed(n: u8) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n

This function will create an integer like 1 where the integer\n value specified is the first part of the token. No suffix is\n specified on this token, meaning that invocations like\n Literal::i8_unsuffixed(1) are equivalent to\n Literal::u32_unsuffixed(1).\n Literals created from negative numbers might not survive rountrips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn u16_unsuffixed(n: u16) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn u16_unsuffixed(n: u16) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n

This function will create an integer like 1 where the integer\n value specified is the first part of the token. No suffix is\n specified on this token, meaning that invocations like\n Literal::i8_unsuffixed(1) are equivalent to\n Literal::u32_unsuffixed(1).\n Literals created from negative numbers might not survive rountrips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn u32_unsuffixed(n: u32) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn u32_unsuffixed(n: u32) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n

This function will create an integer like 1 where the integer\n value specified is the first part of the token. No suffix is\n specified on this token, meaning that invocations like\n Literal::i8_unsuffixed(1) are equivalent to\n Literal::u32_unsuffixed(1).\n Literals created from negative numbers might not survive rountrips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn u64_unsuffixed(n: u64) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn u64_unsuffixed(n: u64) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n

This function will create an integer like 1 where the integer\n value specified is the first part of the token. No suffix is\n specified on this token, meaning that invocations like\n Literal::i8_unsuffixed(1) are equivalent to\n Literal::u32_unsuffixed(1).\n Literals created from negative numbers might not survive rountrips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn u128_unsuffixed(n: u128) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn u128_unsuffixed(n: u128) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n

This function will create an integer like 1 where the integer\n value specified is the first part of the token. No suffix is\n specified on this token, meaning that invocations like\n Literal::i8_unsuffixed(1) are equivalent to\n Literal::u32_unsuffixed(1).\n Literals created from negative numbers might not survive rountrips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn usize_unsuffixed(n: usize) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn usize_unsuffixed(n: usize) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n

This function will create an integer like 1 where the integer\n value specified is the first part of the token. No suffix is\n specified on this token, meaning that invocations like\n Literal::i8_unsuffixed(1) are equivalent to\n Literal::u32_unsuffixed(1).\n Literals created from negative numbers might not survive rountrips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn i8_unsuffixed(n: i8) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn i8_unsuffixed(n: i8) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n

This function will create an integer like 1 where the integer\n value specified is the first part of the token. No suffix is\n specified on this token, meaning that invocations like\n Literal::i8_unsuffixed(1) are equivalent to\n Literal::u32_unsuffixed(1).\n Literals created from negative numbers might not survive rountrips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn i16_unsuffixed(n: i16) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn i16_unsuffixed(n: i16) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n

This function will create an integer like 1 where the integer\n value specified is the first part of the token. No suffix is\n specified on this token, meaning that invocations like\n Literal::i8_unsuffixed(1) are equivalent to\n Literal::u32_unsuffixed(1).\n Literals created from negative numbers might not survive rountrips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn i32_unsuffixed(n: i32) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn i32_unsuffixed(n: i32) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n

This function will create an integer like 1 where the integer\n value specified is the first part of the token. No suffix is\n specified on this token, meaning that invocations like\n Literal::i8_unsuffixed(1) are equivalent to\n Literal::u32_unsuffixed(1).\n Literals created from negative numbers might not survive rountrips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn i64_unsuffixed(n: i64) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn i64_unsuffixed(n: i64) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n

This function will create an integer like 1 where the integer\n value specified is the first part of the token. No suffix is\n specified on this token, meaning that invocations like\n Literal::i8_unsuffixed(1) are equivalent to\n Literal::u32_unsuffixed(1).\n Literals created from negative numbers might not survive rountrips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn i128_unsuffixed(n: i128) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn i128_unsuffixed(n: i128) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n

This function will create an integer like 1 where the integer\n value specified is the first part of the token. No suffix is\n specified on this token, meaning that invocations like\n Literal::i8_unsuffixed(1) are equivalent to\n Literal::u32_unsuffixed(1).\n Literals created from negative numbers might not survive rountrips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn isize_unsuffixed(n: isize) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n+
1.29.0 \u00b7 source

pub fn isize_unsuffixed(n: isize) -> Literal

Creates a new unsuffixed integer literal with the specified value.

\n

This function will create an integer like 1 where the integer\n value specified is the first part of the token. No suffix is\n specified on this token, meaning that invocations like\n Literal::i8_unsuffixed(1) are equivalent to\n Literal::u32_unsuffixed(1).\n Literals created from negative numbers might not survive rountrips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n

Literals created through this method have the Span::call_site()\n span by default, which can be configured with the set_span method\n below.

\n-
1.29.0 \u00b7 source

pub fn f32_unsuffixed(n: f32) -> Literal

Creates a new unsuffixed floating-point literal.

\n+
1.29.0 \u00b7 source

pub fn f32_unsuffixed(n: f32) -> Literal

Creates a new unsuffixed floating-point literal.

\n

This constructor is similar to those like Literal::i8_unsuffixed where\n the float\u2019s value is emitted directly into the token but no suffix is\n used, so it may be inferred to be a f64 later in the compiler.\n Literals created from negative numbers might not survive rountrips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n
\u00a7Panics
\n

This function requires that the specified float is finite, for\n example if it is infinity or NaN this function will panic.

\n-
1.29.0 \u00b7 source

pub fn f32_suffixed(n: f32) -> Literal

Creates a new suffixed floating-point literal.

\n+
1.29.0 \u00b7 source

pub fn f32_suffixed(n: f32) -> Literal

Creates a new suffixed floating-point literal.

\n

This constructor will create a literal like 1.0f32 where the value\n specified is the preceding part of the token and f32 is the suffix of\n the token. This token will always be inferred to be an f32 in the\n compiler.\n Literals created from negative numbers might not survive rountrips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n
\u00a7Panics
\n

This function requires that the specified float is finite, for\n example if it is infinity or NaN this function will panic.

\n-
1.29.0 \u00b7 source

pub fn f64_unsuffixed(n: f64) -> Literal

Creates a new unsuffixed floating-point literal.

\n+
1.29.0 \u00b7 source

pub fn f64_unsuffixed(n: f64) -> Literal

Creates a new unsuffixed floating-point literal.

\n

This constructor is similar to those like Literal::i8_unsuffixed where\n the float\u2019s value is emitted directly into the token but no suffix is\n used, so it may be inferred to be a f64 later in the compiler.\n Literals created from negative numbers might not survive rountrips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n
\u00a7Panics
\n

This function requires that the specified float is finite, for\n example if it is infinity or NaN this function will panic.

\n-
1.29.0 \u00b7 source

pub fn f64_suffixed(n: f64) -> Literal

Creates a new suffixed floating-point literal.

\n+
1.29.0 \u00b7 source

pub fn f64_suffixed(n: f64) -> Literal

Creates a new suffixed floating-point literal.

\n

This constructor will create a literal like 1.0f64 where the value\n specified is the preceding part of the token and f64 is the suffix of\n the token. This token will always be inferred to be an f64 in the\n compiler.\n Literals created from negative numbers might not survive rountrips through\n TokenStream or strings and may be broken into two tokens (- and positive literal).

\n
\u00a7Panics
\n

This function requires that the specified float is finite, for\n example if it is infinity or NaN this function will panic.

\n-
1.29.0 \u00b7 source

pub fn string(string: &str) -> Literal

String literal.

\n-
1.29.0 \u00b7 source

pub fn character(ch: char) -> Literal

Character literal.

\n-
1.79.0 \u00b7 source

pub fn byte_character(byte: u8) -> Literal

Byte character literal.

\n-
1.29.0 \u00b7 source

pub fn byte_string(bytes: &[u8]) -> Literal

Byte string literal.

\n+
1.29.0 \u00b7 source

pub fn string(string: &str) -> Literal

String literal.

\n+
1.29.0 \u00b7 source

pub fn character(ch: char) -> Literal

Character literal.

\n+
1.79.0 \u00b7 source

pub fn byte_character(byte: u8) -> Literal

Byte character literal.

\n+
1.29.0 \u00b7 source

pub fn byte_string(bytes: &[u8]) -> Literal

Byte string literal.

\n
1.79.0 \u00b7 source

pub fn c_string(string: &CStr) -> Literal

C string literal.

\n
1.29.0 \u00b7 source

pub fn span(&self) -> Span

Returns the span encompassing this literal.

\n
1.29.0 \u00b7 source

pub fn set_span(&mut self, span: Span)

Configures the span associated for this literal.

\n-
source

pub fn subspan<R: RangeBounds<usize>>(&self, range: R) -> Option<Span>

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)

Returns a Span that is a subset of self.span() containing only the\n+

source

pub fn subspan<R: RangeBounds<usize>>(&self, range: R) -> Option<Span>

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)

Returns a Span that is a subset of self.span() containing only the\n source bytes in range range. Returns None if the would-be trimmed\n span is outside the bounds of self.

\n

Trait Implementations\u00a7

1.29.0 \u00b7 source\u00a7

impl Clone for Literal

source\u00a7

fn clone(&self) -> Literal

Returns a copy of the value. Read more
1.0.0 \u00b7 source\u00a7

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.29.0 \u00b7 source\u00a7

impl Debug for Literal

source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.29.0 \u00b7 source\u00a7

impl Display for Literal

Prints the literal as a string that should be losslessly convertible\n back into the same literal (except for possible rounding for floating point literals).

\n
source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.29.0 \u00b7 source\u00a7

impl From<Literal> for TokenTree

source\u00a7

fn from(g: Literal) -> TokenTree

Converts to this type from the input type.
1.54.0 \u00b7 source\u00a7

impl FromStr for Literal

Parse a single literal from its stringified representation.

\n

In order to parse successfully, the input string must not contain anything\n but the literal token. Specifically, it must not contain whitespace or\n comments in addition to the literal.

\n

The resulting literal token will have a Span::call_site() span.

\n

NOTE: some errors may cause panics instead of returning LexError. We\n reserve the right to change these errors into LexErrors later.

\n-
source\u00a7

type Err = LexError

The associated error which can be returned from parsing.
source\u00a7

fn from_str(src: &str) -> Result<Self, LexError>

Parses a string s to return a value of this type. Read more

Auto Trait Implementations\u00a7

Blanket Implementations\u00a7

source\u00a7

impl<T> Any for T
where\n+
source\u00a7

type Err = LexError

The associated error which can be returned from parsing.
source\u00a7

fn from_str(src: &str) -> Result<Self, LexError>

Parses a string s to return a value of this type. Read more

Auto Trait Implementations\u00a7

Blanket Implementations\u00a7

source\u00a7

impl<T> Any for T
where\n T: 'static + ?Sized,

source\u00a7

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source\u00a7

impl<T> Borrow<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n- T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n+ T: ?Sized,

source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n+ T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n+ T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n
source\u00a7

impl<T, U> Into<U> for T
where\n U: From<T>,

source\u00a7

fn into(self) -> U

Calls U::from(self).

\n

That is, this conversion is whatever the implementation of\n From<T> for U chooses to do.

\n
source\u00a7

impl<T> ToOwned for T
where\n- T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T> ToString for T
where\n+ T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T> ToString for T
where\n T: Display + ?Sized,

source\u00a7

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n U: Into<T>,

source\u00a7

type Error = Infallible

The type returned in the event of a conversion error.
source\u00a7

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source\u00a7

impl<T, U> TryInto<U> for T
where\n U: TryFrom<T>,

source\u00a7

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source\u00a7

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\n"}, {"source1": "./usr/share/doc/rust-doc/html/proc_macro/struct.Punct.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/struct.Punct.html", "unified_diff": "@@ -1,32 +1,32 @@\n Punct in proc_macro - Rust

Struct proc_macro::Punct

1.29.0 \u00b7 source \u00b7
pub struct Punct(/* private fields */);
Expand description

A Punct is a single punctuation character such as +, - or #.

\n

Multi-character operators like += are represented as two instances of Punct with different\n forms of Spacing returned.

\n-

Implementations\u00a7

source\u00a7

impl Punct

1.29.0 \u00b7 source

pub fn new(ch: char, spacing: Spacing) -> Punct

Creates a new Punct from the given character and spacing.\n+

Implementations\u00a7

source\u00a7

impl Punct

1.29.0 \u00b7 source

pub fn new(ch: char, spacing: Spacing) -> Punct

Creates a new Punct from the given character and spacing.\n The ch argument must be a valid punctuation character permitted by the language,\n otherwise the function will panic.

\n

The returned Punct will have the default span of Span::call_site()\n which can be further configured with the set_span method below.

\n-
1.29.0 \u00b7 source

pub fn as_char(&self) -> char

Returns the value of this punctuation character as char.

\n+
1.29.0 \u00b7 source

pub fn as_char(&self) -> char

Returns the value of this punctuation character as char.

\n
1.29.0 \u00b7 source

pub fn spacing(&self) -> Spacing

Returns the spacing of this punctuation character, indicating whether it can be potentially\n combined into a multi-character operator with the following token (Joint), or whether the\n operator has definitely ended (Alone).

\n
1.29.0 \u00b7 source

pub fn span(&self) -> Span

Returns the span for this punctuation character.

\n
1.29.0 \u00b7 source

pub fn set_span(&mut self, span: Span)

Configure the span for this punctuation character.

\n

Trait Implementations\u00a7

1.29.0 \u00b7 source\u00a7

impl Clone for Punct

source\u00a7

fn clone(&self) -> Punct

Returns a copy of the value. Read more
1.0.0 \u00b7 source\u00a7

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.29.0 \u00b7 source\u00a7

impl Debug for Punct

source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.29.0 \u00b7 source\u00a7

impl Display for Punct

Prints the punctuation character as a string that should be losslessly convertible\n back into the same character.

\n-
source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.29.0 \u00b7 source\u00a7

impl From<Punct> for TokenTree

source\u00a7

fn from(g: Punct) -> TokenTree

Converts to this type from the input type.
1.52.0 \u00b7 source\u00a7

impl PartialEq<Punct> for char

source\u00a7

fn eq(&self, rhs: &Punct) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 \u00b7 source\u00a7

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient,\n-and should not be overridden without very good reason.
1.50.0 \u00b7 source\u00a7

impl PartialEq<char> for Punct

source\u00a7

fn eq(&self, rhs: &char) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 \u00b7 source\u00a7

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient,\n+
source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.29.0 \u00b7 source\u00a7

impl From<Punct> for TokenTree

source\u00a7

fn from(g: Punct) -> TokenTree

Converts to this type from the input type.
1.52.0 \u00b7 source\u00a7

impl PartialEq<Punct> for char

source\u00a7

fn eq(&self, rhs: &Punct) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 \u00b7 source\u00a7

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient,\n+and should not be overridden without very good reason.
1.50.0 \u00b7 source\u00a7

impl PartialEq<char> for Punct

source\u00a7

fn eq(&self, rhs: &char) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 \u00b7 source\u00a7

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient,\n and should not be overridden without very good reason.
1.29.0 \u00b7 source\u00a7

impl !Send for Punct

1.29.0 \u00b7 source\u00a7

impl !Sync for Punct

Auto Trait Implementations\u00a7

Blanket Implementations\u00a7

source\u00a7

impl<T> Any for T
where\n T: 'static + ?Sized,

source\u00a7

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source\u00a7

impl<T> Borrow<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n- T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n+ T: ?Sized,
source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n+ T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n+ T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n
source\u00a7

impl<T, U> Into<U> for T
where\n U: From<T>,

source\u00a7

fn into(self) -> U

Calls U::from(self).

\n

That is, this conversion is whatever the implementation of\n From<T> for U chooses to do.

\n
source\u00a7

impl<T> ToOwned for T
where\n- T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T> ToString for T
where\n+ T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T> ToString for T
where\n T: Display + ?Sized,

source\u00a7

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n U: Into<T>,

source\u00a7

type Error = Infallible

The type returned in the event of a conversion error.
source\u00a7

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source\u00a7

impl<T, U> TryInto<U> for T
where\n U: TryFrom<T>,

source\u00a7

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source\u00a7

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\n"}, {"source1": "./usr/share/doc/rust-doc/html/proc_macro/struct.SourceFile.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/struct.SourceFile.html", "unified_diff": "@@ -1,23 +1,23 @@\n SourceFile in proc_macro - Rust

Struct proc_macro::SourceFile

source \u00b7
pub struct SourceFile(/* private fields */);
\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)
Expand description

The source file of a given Span.

\n-

Implementations\u00a7

source\u00a7

impl SourceFile

source

pub fn path(&self) -> PathBuf

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)

Gets the path to this source file.

\n+

Implementations\u00a7

source\u00a7

impl SourceFile

source

pub fn path(&self) -> PathBuf

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)

Gets the path to this source file.

\n
\u00a7Note
\n

If the code span associated with this SourceFile was generated by an external macro, this\n macro, this might not be an actual path on the filesystem. Use is_real to check.

\n

Also note that even if is_real returns true, if --remap-path-prefix was passed on\n the command line, the path as given might not actually be valid.

\n-
source

pub fn is_real(&self) -> bool

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)

Returns true if this source file is a real source file, and not generated by an external\n+

source

pub fn is_real(&self) -> bool

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)

Returns true if this source file is a real source file, and not generated by an external\n macro\u2019s expansion.

\n-

Trait Implementations\u00a7

source\u00a7

impl Clone for SourceFile

source\u00a7

fn clone(&self) -> SourceFile

Returns a copy of the value. Read more
1.0.0 \u00b7 source\u00a7

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source\u00a7

impl Debug for SourceFile

source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source\u00a7

impl PartialEq for SourceFile

source\u00a7

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 \u00b7 source\u00a7

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient,\n+

Trait Implementations\u00a7

source\u00a7

impl Clone for SourceFile

source\u00a7

fn clone(&self) -> SourceFile

Returns a copy of the value. Read more
1.0.0 \u00b7 source\u00a7

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source\u00a7

impl Debug for SourceFile

source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source\u00a7

impl PartialEq for SourceFile

source\u00a7

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 \u00b7 source\u00a7

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient,\n and should not be overridden without very good reason.
source\u00a7

impl Eq for SourceFile

Auto Trait Implementations\u00a7

Blanket Implementations\u00a7

source\u00a7

impl<T> Any for T
where\n T: 'static + ?Sized,

source\u00a7

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source\u00a7

impl<T> Borrow<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n- T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n+ T: ?Sized,
source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n+ T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n+ T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n
source\u00a7

impl<T, U> Into<U> for T
where\n U: From<T>,

source\u00a7

fn into(self) -> U

Calls U::from(self).

\n

That is, this conversion is whatever the implementation of\n From<T> for U chooses to do.

\n
source\u00a7

impl<T> ToOwned for T
where\n- T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n+ T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n U: Into<T>,

source\u00a7

type Error = Infallible

The type returned in the event of a conversion error.
source\u00a7

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source\u00a7

impl<T, U> TryInto<U> for T
where\n U: TryFrom<T>,

source\u00a7

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source\u00a7

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\n"}, {"source1": "./usr/share/doc/rust-doc/html/proc_macro/struct.Span.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/struct.Span.html", "unified_diff": "@@ -10,28 +10,28 @@\n The span location is taken from the call-site.

\n
source

pub fn source_file(&self) -> SourceFile

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)

The original source file into which this span points.

\n
source

pub fn parent(&self) -> Option<Span>

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)

The Span for the tokens in the previous macro expansion from which\n self was generated from, if any.

\n
source

pub fn source(&self) -> Span

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)

The span for the origin source code that self was generated from. If\n this Span wasn\u2019t generated from other macro expansions then the return\n value is the same as *self.

\n-
source

pub fn byte_range(&self) -> Range<usize>

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)

Returns the span\u2019s byte position range in the source file.

\n+
source

pub fn byte_range(&self) -> Range<usize>

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)

Returns the span\u2019s byte position range in the source file.

\n
source

pub fn start(&self) -> Span

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)

Creates an empty span pointing to directly before this span.

\n
source

pub fn end(&self) -> Span

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)

Creates an empty span pointing to directly after this span.

\n-
source

pub fn line(&self) -> usize

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)

The one-indexed line of the source file where the span starts.

\n+
source

pub fn line(&self) -> usize

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)

The one-indexed line of the source file where the span starts.

\n

To obtain the line of the span\u2019s end, use span.end().line().

\n-
source

pub fn column(&self) -> usize

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)

The one-indexed column of the source file where the span starts.

\n+
source

pub fn column(&self) -> usize

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)

The one-indexed column of the source file where the span starts.

\n

To obtain the column of the span\u2019s end, use span.end().column().

\n
source

pub fn join(&self, other: Span) -> Option<Span>

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)

Creates a new span encompassing self and other.

\n

Returns None if self and other are from different files.

\n
1.45.0 \u00b7 source

pub fn resolved_at(&self, other: Span) -> Span

Creates a new span with the same line/column information as self but\n that resolves symbols as though it were at other.

\n
1.45.0 \u00b7 source

pub fn located_at(&self, other: Span) -> Span

Creates a new span with the same name resolution behavior as self but\n with the line/column information of other.

\n-
source

pub fn eq(&self, other: &Span) -> bool

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)

Compares two spans to see if they\u2019re equal.

\n+
source

pub fn eq(&self, other: &Span) -> bool

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_span #54725)

Compares two spans to see if they\u2019re equal.

\n
1.66.0 \u00b7 source

pub fn source_text(&self) -> Option<String>

Returns the source text behind a span. This preserves the original source\n code, including spaces and comments. It only returns a result if the span\n corresponds to real source code.

\n

Note: The observable result of a macro should only rely on the tokens and\n not on this source text. The result of this function is a best effort to\n be used for diagnostics only.

\n
source

pub fn error<T: Into<String>>(self, message: T) -> Diagnostic

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Creates a new Diagnostic with the given message at the span\n@@ -41,18 +41,18 @@\n

source

pub fn note<T: Into<String>>(self, message: T) -> Diagnostic

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Creates a new Diagnostic with the given message at the span\n self.

\n
source

pub fn help<T: Into<String>>(self, message: T) -> Diagnostic

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Creates a new Diagnostic with the given message at the span\n self.

\n

Trait Implementations\u00a7

1.29.0 \u00b7 source\u00a7

impl Clone for Span

source\u00a7

fn clone(&self) -> Span

Returns a copy of the value. Read more
1.0.0 \u00b7 source\u00a7

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.29.0 \u00b7 source\u00a7

impl Debug for Span

Prints a span in a form convenient for debugging.

\n
source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source\u00a7

impl MultiSpan for Span

source\u00a7

fn into_spans(self) -> Vec<Span>

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_diagnostic #54140)
Converts self into a Vec<Span>.
1.29.0 \u00b7 source\u00a7

impl Copy for Span

1.29.0 \u00b7 source\u00a7

impl !Send for Span

1.29.0 \u00b7 source\u00a7

impl !Sync for Span

Auto Trait Implementations\u00a7

\u00a7

impl Freeze for Span

\u00a7

impl RefUnwindSafe for Span

\u00a7

impl Unpin for Span

\u00a7

impl UnwindSafe for Span

Blanket Implementations\u00a7

source\u00a7

impl<T> Any for T
where\n T: 'static + ?Sized,

source\u00a7

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source\u00a7

impl<T> Borrow<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n- T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n+ T: ?Sized,
source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n+ T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n+ T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n
source\u00a7

impl<T, U> Into<U> for T
where\n U: From<T>,

source\u00a7

fn into(self) -> U

Calls U::from(self).

\n

That is, this conversion is whatever the implementation of\n From<T> for U chooses to do.

\n
source\u00a7

impl<T> ToOwned for T
where\n- T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n+ T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n U: Into<T>,

source\u00a7

type Error = Infallible

The type returned in the event of a conversion error.
source\u00a7

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source\u00a7

impl<T, U> TryInto<U> for T
where\n U: TryFrom<T>,

source\u00a7

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source\u00a7

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\n"}, {"source1": "./usr/share/doc/rust-doc/html/proc_macro/struct.TokenStream.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/struct.TokenStream.html", "unified_diff": "@@ -1,15 +1,15 @@\n TokenStream in proc_macro - Rust

Struct proc_macro::TokenStream

1.15.0 \u00b7 source \u00b7
pub struct TokenStream(/* private fields */);
Expand description

The main type provided by this crate, representing an abstract stream of\n tokens, or, more specifically, a sequence of token trees.\n The type provides interfaces for iterating over those token trees and, conversely,\n collecting a number of token trees into one stream.

\n

This is both the input and output of #[proc_macro], #[proc_macro_attribute]\n and #[proc_macro_derive] definitions.

\n

Implementations\u00a7

source\u00a7

impl TokenStream

1.29.0 \u00b7 source

pub fn new() -> TokenStream

Returns an empty TokenStream containing no token trees.

\n-
1.29.0 \u00b7 source

pub fn is_empty(&self) -> bool

Checks if this TokenStream is empty.

\n+
1.29.0 \u00b7 source

pub fn is_empty(&self) -> bool

Checks if this TokenStream is empty.

\n
source

pub fn expand_expr(&self) -> Result<TokenStream, ExpandError>

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_expand #90765)

Parses this TokenStream as an expression and attempts to expand any\n macros within it. Returns the expanded TokenStream.

\n

Currently only expressions expanding to literals will succeed, although\n this may be relaxed in the future.

\n

NOTE: In error conditions, expand_expr may leave macros unexpanded,\n report an error, failing compilation, and/or return an Err(..). The\n specific behavior for any error condition, and what conditions are\n@@ -21,31 +21,31 @@\n

Note: the exact form of the output is subject to change, e.g. there might\n be changes in the whitespace used between tokens. Therefore, you should\n not do any kind of simple substring matching on the output string (as\n produced by to_string) to implement a proc macro, because that matching\n might stop working if such changes happen. Instead, you should work at the\n TokenTree level, e.g. matching against TokenTree::Ident,\n TokenTree::Punct, or TokenTree::Literal.

\n-
source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.30.0 \u00b7 source\u00a7

impl Extend<TokenStream> for TokenStream

source\u00a7

fn extend<I: IntoIterator<Item = TokenStream>>(&mut self, streams: I)

Extends a collection with the contents of an iterator. Read more
source\u00a7

fn extend_one(&mut self, item: A)

\ud83d\udd2cThis is a nightly-only experimental API. (extend_one #72631)
Extends a collection with exactly one element.
source\u00a7

fn extend_reserve(&mut self, additional: usize)

\ud83d\udd2cThis is a nightly-only experimental API. (extend_one #72631)
Reserves capacity in a collection for the given number of additional elements. Read more
1.30.0 \u00b7 source\u00a7

impl Extend<TokenTree> for TokenStream

source\u00a7

fn extend<I: IntoIterator<Item = TokenTree>>(&mut self, trees: I)

Extends a collection with the contents of an iterator. Read more
source\u00a7

fn extend_one(&mut self, item: A)

\ud83d\udd2cThis is a nightly-only experimental API. (extend_one #72631)
Extends a collection with exactly one element.
source\u00a7

fn extend_reserve(&mut self, additional: usize)

\ud83d\udd2cThis is a nightly-only experimental API. (extend_one #72631)
Reserves capacity in a collection for the given number of additional elements. Read more
1.29.0 \u00b7 source\u00a7

impl From<TokenTree> for TokenStream

Creates a token stream containing a single token tree.

\n+
source\u00a7

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
1.30.0 \u00b7 source\u00a7

impl Extend<TokenStream> for TokenStream

source\u00a7

fn extend<I: IntoIterator<Item = TokenStream>>(&mut self, streams: I)

Extends a collection with the contents of an iterator. Read more
source\u00a7

fn extend_one(&mut self, item: A)

\ud83d\udd2cThis is a nightly-only experimental API. (extend_one #72631)
Extends a collection with exactly one element.
source\u00a7

fn extend_reserve(&mut self, additional: usize)

\ud83d\udd2cThis is a nightly-only experimental API. (extend_one #72631)
Reserves capacity in a collection for the given number of additional elements. Read more
1.30.0 \u00b7 source\u00a7

impl Extend<TokenTree> for TokenStream

source\u00a7

fn extend<I: IntoIterator<Item = TokenTree>>(&mut self, trees: I)

Extends a collection with the contents of an iterator. Read more
source\u00a7

fn extend_one(&mut self, item: A)

\ud83d\udd2cThis is a nightly-only experimental API. (extend_one #72631)
Extends a collection with exactly one element.
source\u00a7

fn extend_reserve(&mut self, additional: usize)

\ud83d\udd2cThis is a nightly-only experimental API. (extend_one #72631)
Reserves capacity in a collection for the given number of additional elements. Read more
1.29.0 \u00b7 source\u00a7

impl From<TokenTree> for TokenStream

Creates a token stream containing a single token tree.

\n
source\u00a7

fn from(tree: TokenTree) -> TokenStream

Converts to this type from the input type.
1.15.0 \u00b7 source\u00a7

impl FromIterator<TokenStream> for TokenStream

A \u201cflattening\u201d operation on token streams, collects token trees\n from multiple token streams into a single stream.

\n
source\u00a7

fn from_iter<I: IntoIterator<Item = TokenStream>>(streams: I) -> Self

Creates a value from an iterator. Read more
1.29.0 \u00b7 source\u00a7

impl FromIterator<TokenTree> for TokenStream

Collects a number of token trees into a single stream.

\n
source\u00a7

fn from_iter<I: IntoIterator<Item = TokenTree>>(trees: I) -> Self

Creates a value from an iterator. Read more
1.15.0 \u00b7 source\u00a7

impl FromStr for TokenStream

Attempts to break the string into tokens and parse those tokens into a token stream.\n May fail for a number of reasons, for example, if the string contains unbalanced delimiters\n or characters not existing in the language.\n All tokens in the parsed stream get Span::call_site() spans.

\n

NOTE: some errors may cause panics instead of returning LexError. We reserve the right to\n change these errors into LexErrors later.

\n-
source\u00a7

type Err = LexError

The associated error which can be returned from parsing.
source\u00a7

fn from_str(src: &str) -> Result<TokenStream, LexError>

Parses a string s to return a value of this type. Read more
1.29.0 \u00b7 source\u00a7

impl IntoIterator for TokenStream

source\u00a7

type Item = TokenTree

The type of the elements being iterated over.
source\u00a7

type IntoIter = IntoIter

Which kind of iterator are we turning this into?
source\u00a7

fn into_iter(self) -> IntoIter \u24d8

Creates an iterator from a value. Read more
1.15.0 \u00b7 source\u00a7

impl !Send for TokenStream

1.15.0 \u00b7 source\u00a7

impl !Sync for TokenStream

Auto Trait Implementations\u00a7

Blanket Implementations\u00a7

source\u00a7

impl<T> Any for T
where\n+
source\u00a7

type Err = LexError

The associated error which can be returned from parsing.
source\u00a7

fn from_str(src: &str) -> Result<TokenStream, LexError>

Parses a string s to return a value of this type. Read more

1.29.0 \u00b7 source\u00a7

impl IntoIterator for TokenStream

source\u00a7

type Item = TokenTree

The type of the elements being iterated over.
source\u00a7

type IntoIter = IntoIter

Which kind of iterator are we turning this into?
source\u00a7

fn into_iter(self) -> IntoIter \u24d8

Creates an iterator from a value. Read more
1.15.0 \u00b7 source\u00a7

impl !Send for TokenStream

1.15.0 \u00b7 source\u00a7

impl !Sync for TokenStream

Auto Trait Implementations\u00a7

Blanket Implementations\u00a7

source\u00a7

impl<T> Any for T
where\n T: 'static + ?Sized,

source\u00a7

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source\u00a7

impl<T> Borrow<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n- T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n+ T: ?Sized,
source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n+ T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n+ T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n
source\u00a7

impl<T, U> Into<U> for T
where\n U: From<T>,

source\u00a7

fn into(self) -> U

Calls U::from(self).

\n

That is, this conversion is whatever the implementation of\n From<T> for U chooses to do.

\n
source\u00a7

impl<T> ToOwned for T
where\n- T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T> ToString for T
where\n+ T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T> ToString for T
where\n T: Display + ?Sized,

source\u00a7

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n U: Into<T>,

source\u00a7

type Error = Infallible

The type returned in the event of a conversion error.
source\u00a7

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source\u00a7

impl<T, U> TryInto<U> for T
where\n U: TryFrom<T>,

source\u00a7

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source\u00a7

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\n"}, {"source1": "./usr/share/doc/rust-doc/html/proc_macro/token_stream/struct.IntoIter.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/token_stream/struct.IntoIter.html", "unified_diff": "@@ -1,15 +1,15 @@\n IntoIter in proc_macro::token_stream - Rust

Struct proc_macro::token_stream::IntoIter

1.29.0 \u00b7 source \u00b7
pub struct IntoIter(/* private fields */);
Expand description

An iterator over TokenStream\u2019s TokenTrees.\n The iteration is \u201cshallow\u201d, e.g., the iterator doesn\u2019t recurse into delimited groups,\n and returns whole groups as token trees.

\n-

Trait Implementations\u00a7

1.29.0 \u00b7 source\u00a7

impl Clone for IntoIter

source\u00a7

fn clone(&self) -> IntoIter \u24d8

Returns a copy of the value. Read more
1.0.0 \u00b7 source\u00a7

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.29.0 \u00b7 source\u00a7

impl Iterator for IntoIter

source\u00a7

type Item = TokenTree

The type of the elements being iterated over.
source\u00a7

fn next(&mut self) -> Option<TokenTree>

Advances the iterator and returns the next value. Read more
source\u00a7

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source\u00a7

fn count(self) -> usize

Consumes the iterator, counting the number of iterations and returning it. Read more
source\u00a7

fn next_chunk<const N: usize>(\n+

Trait Implementations\u00a7

1.29.0 \u00b7 source\u00a7

impl Clone for IntoIter

source\u00a7

fn clone(&self) -> IntoIter \u24d8

Returns a copy of the value. Read more
1.0.0 \u00b7 source\u00a7

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.29.0 \u00b7 source\u00a7

impl Iterator for IntoIter

source\u00a7

type Item = TokenTree

The type of the elements being iterated over.
source\u00a7

fn next(&mut self) -> Option<TokenTree>

Advances the iterator and returns the next value. Read more
source\u00a7

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source\u00a7

fn count(self) -> usize

Consumes the iterator, counting the number of iterations and returning it. Read more
source\u00a7

fn next_chunk<const N: usize>(\n &mut self,\n-) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where\n+) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where\n Self: Sized,

\ud83d\udd2cThis is a nightly-only experimental API. (iter_next_chunk #98326)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 \u00b7 source\u00a7

fn last(self) -> Option<Self::Item>
where\n- Self: Sized,

Consumes the iterator, returning the last element. Read more
source\u00a7

fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

\ud83d\udd2cThis is a nightly-only experimental API. (iter_advance_by #77404)
Advances the iterator by n elements. Read more
1.0.0 \u00b7 source\u00a7

fn nth(&mut self, n: usize) -> Option<Self::Item>

Returns the nth element of the iterator. Read more
1.28.0 \u00b7 source\u00a7

fn step_by(self, step: usize) -> StepBy<Self>
where\n+ Self: Sized,

Consumes the iterator, returning the last element. Read more
source\u00a7

fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

\ud83d\udd2cThis is a nightly-only experimental API. (iter_advance_by #77404)
Advances the iterator by n elements. Read more
1.0.0 \u00b7 source\u00a7

fn nth(&mut self, n: usize) -> Option<Self::Item>

Returns the nth element of the iterator. Read more
1.28.0 \u00b7 source\u00a7

fn step_by(self, step: usize) -> StepBy<Self>
where\n Self: Sized,

Creates an iterator starting at the same point, but stepping by\n the given amount at each iteration. Read more
1.0.0 \u00b7 source\u00a7

fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter>
where\n Self: Sized,\n U: IntoIterator<Item = Self::Item>,

Takes two iterators and creates a new iterator over both in sequence. Read more
1.0.0 \u00b7 source\u00a7

fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter>
where\n Self: Sized,\n U: IntoIterator,

\u2018Zips up\u2019 two iterators into a single iterator of pairs. Read more
source\u00a7

fn intersperse(self, separator: Self::Item) -> Intersperse<Self>
where\n Self: Sized,\n@@ -20,117 +20,117 @@\n between adjacent items of the original iterator. Read more

1.0.0 \u00b7 source\u00a7

fn map<B, F>(self, f: F) -> Map<Self, F>
where\n Self: Sized,\n F: FnMut(Self::Item) -> B,

Takes a closure and creates an iterator which calls that closure on each\n element. Read more
1.21.0 \u00b7 source\u00a7

fn for_each<F>(self, f: F)
where\n Self: Sized,\n F: FnMut(Self::Item),

Calls a closure on each element of an iterator. Read more
1.0.0 \u00b7 source\u00a7

fn filter<P>(self, predicate: P) -> Filter<Self, P>
where\n Self: Sized,\n- P: FnMut(&Self::Item) -> bool,

Creates an iterator which uses a closure to determine if an element\n+ P: FnMut(&Self::Item) -> bool,
Creates an iterator which uses a closure to determine if an element\n should be yielded. Read more
1.0.0 \u00b7 source\u00a7

fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F>
where\n Self: Sized,\n F: FnMut(Self::Item) -> Option<B>,

Creates an iterator that both filters and maps. Read more
1.0.0 \u00b7 source\u00a7

fn enumerate(self) -> Enumerate<Self>
where\n Self: Sized,

Creates an iterator which gives the current iteration count as well as\n the next value. Read more
1.0.0 \u00b7 source\u00a7

fn peekable(self) -> Peekable<Self>
where\n Self: Sized,

Creates an iterator which can use the peek and peek_mut methods\n to look at the next element of the iterator without consuming it. See\n their documentation for more information. Read more
1.0.0 \u00b7 source\u00a7

fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>
where\n Self: Sized,\n- P: FnMut(&Self::Item) -> bool,

Creates an iterator that skips elements based on a predicate. Read more
1.0.0 \u00b7 source\u00a7

fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
where\n+ P: FnMut(&Self::Item) -> bool,

Creates an iterator that skips elements based on a predicate. Read more
1.0.0 \u00b7 source\u00a7

fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
where\n Self: Sized,\n- P: FnMut(&Self::Item) -> bool,

Creates an iterator that yields elements based on a predicate. Read more
1.57.0 \u00b7 source\u00a7

fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P>
where\n+ P: FnMut(&Self::Item) -> bool,

Creates an iterator that yields elements based on a predicate. Read more
1.57.0 \u00b7 source\u00a7

fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P>
where\n Self: Sized,\n- P: FnMut(Self::Item) -> Option<B>,

Creates an iterator that both yields elements based on a predicate and maps. Read more
1.0.0 \u00b7 source\u00a7

fn skip(self, n: usize) -> Skip<Self>
where\n- Self: Sized,

Creates an iterator that skips the first n elements. Read more
1.0.0 \u00b7 source\u00a7

fn take(self, n: usize) -> Take<Self>
where\n+ P: FnMut(Self::Item) -> Option<B>,

Creates an iterator that both yields elements based on a predicate and maps. Read more
1.0.0 \u00b7 source\u00a7

fn skip(self, n: usize) -> Skip<Self>
where\n+ Self: Sized,

Creates an iterator that skips the first n elements. Read more
1.0.0 \u00b7 source\u00a7

fn take(self, n: usize) -> Take<Self>
where\n Self: Sized,

Creates an iterator that yields the first n elements, or fewer\n if the underlying iterator ends sooner. Read more
1.0.0 \u00b7 source\u00a7

fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F>
where\n Self: Sized,\n- F: FnMut(&mut St, Self::Item) -> Option<B>,

An iterator adapter which, like fold, holds internal state, but\n+ F: FnMut(&mut St, Self::Item) -> Option<B>,
An iterator adapter which, like fold, holds internal state, but\n unlike fold, produces a new iterator. Read more
1.0.0 \u00b7 source\u00a7

fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>
where\n Self: Sized,\n U: IntoIterator,\n- F: FnMut(Self::Item) -> U,

Creates an iterator that works like map, but flattens nested structure. Read more
source\u00a7

fn map_windows<F, R, const N: usize>(self, f: F) -> MapWindows<Self, F, N>
where\n+ F: FnMut(Self::Item) -> U,

Creates an iterator that works like map, but flattens nested structure. Read more
source\u00a7

fn map_windows<F, R, const N: usize>(self, f: F) -> MapWindows<Self, F, N>
where\n Self: Sized,\n- F: FnMut(&[Self::Item; N]) -> R,

\ud83d\udd2cThis is a nightly-only experimental API. (iter_map_windows #87155)
Calls the given function f for each contiguous window of size N over\n-self and returns an iterator over the outputs of f. Like slice::windows(),\n+ F: FnMut(&[Self::Item; N]) -> R,
\ud83d\udd2cThis is a nightly-only experimental API. (iter_map_windows #87155)
Calls the given function f for each contiguous window of size N over\n+self and returns an iterator over the outputs of f. Like slice::windows(),\n the windows during mapping overlap as well. Read more
1.0.0 \u00b7 source\u00a7

fn fuse(self) -> Fuse<Self>
where\n Self: Sized,

Creates an iterator which ends after the first None. Read more
1.0.0 \u00b7 source\u00a7

fn inspect<F>(self, f: F) -> Inspect<Self, F>
where\n Self: Sized,\n F: FnMut(&Self::Item),

Does something with each element of an iterator, passing the value on. Read more
1.0.0 \u00b7 source\u00a7

fn by_ref(&mut self) -> &mut Self
where\n Self: Sized,

Borrows an iterator, rather than consuming it. Read more
1.0.0 \u00b7 source\u00a7

fn collect<B>(self) -> B
where\n B: FromIterator<Self::Item>,\n- Self: Sized,

Transforms an iterator into a collection. Read more
source\u00a7

fn collect_into<E>(self, collection: &mut E) -> &mut E
where\n+ Self: Sized,

Transforms an iterator into a collection. Read more
source\u00a7

fn collect_into<E>(self, collection: &mut E) -> &mut E
where\n E: Extend<Self::Item>,\n- Self: Sized,

\ud83d\udd2cThis is a nightly-only experimental API. (iter_collect_into #94780)
Collects all the items from an iterator into a collection. Read more
1.0.0 \u00b7 source\u00a7

fn partition<B, F>(self, f: F) -> (B, B)
where\n+ Self: Sized,

\ud83d\udd2cThis is a nightly-only experimental API. (iter_collect_into #94780)
Collects all the items from an iterator into a collection. Read more
1.0.0 \u00b7 source\u00a7

fn partition<B, F>(self, f: F) -> (B, B)
where\n Self: Sized,\n B: Default + Extend<Self::Item>,\n- F: FnMut(&Self::Item) -> bool,

Consumes an iterator, creating two collections from it. Read more
source\u00a7

fn is_partitioned<P>(self, predicate: P) -> bool
where\n+ F: FnMut(&Self::Item) -> bool,

Consumes an iterator, creating two collections from it. Read more
source\u00a7

fn is_partitioned<P>(self, predicate: P) -> bool
where\n Self: Sized,\n- P: FnMut(Self::Item) -> bool,

\ud83d\udd2cThis is a nightly-only experimental API. (iter_is_partitioned #62544)
Checks if the elements of this iterator are partitioned according to the given predicate,\n+ P: FnMut(Self::Item) -> bool,
\ud83d\udd2cThis is a nightly-only experimental API. (iter_is_partitioned #62544)
Checks if the elements of this iterator are partitioned according to the given predicate,\n such that all those that return true precede all those that return false. Read more
1.27.0 \u00b7 source\u00a7

fn try_fold<B, F, R>(&mut self, init: B, f: F) -> R
where\n Self: Sized,\n F: FnMut(B, Self::Item) -> R,\n R: Try<Output = B>,

An iterator method that applies a function as long as it returns\n successfully, producing a single, final value. Read more
1.27.0 \u00b7 source\u00a7

fn try_for_each<F, R>(&mut self, f: F) -> R
where\n Self: Sized,\n F: FnMut(Self::Item) -> R,\n- R: Try<Output = ()>,

An iterator method that applies a fallible function to each item in the\n+ R: Try<Output = ()>,
An iterator method that applies a fallible function to each item in the\n iterator, stopping at the first error and returning that error. Read more
1.0.0 \u00b7 source\u00a7

fn fold<B, F>(self, init: B, f: F) -> B
where\n Self: Sized,\n F: FnMut(B, Self::Item) -> B,

Folds every element into an accumulator by applying an operation,\n returning the final result. Read more
1.51.0 \u00b7 source\u00a7

fn reduce<F>(self, f: F) -> Option<Self::Item>
where\n Self: Sized,\n F: FnMut(Self::Item, Self::Item) -> Self::Item,

Reduces the elements to a single one, by repeatedly applying a reducing\n operation. Read more
source\u00a7

fn try_reduce<R>(\n &mut self,\n f: impl FnMut(Self::Item, Self::Item) -> R,\n ) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryType
where\n Self: Sized,\n R: Try<Output = Self::Item>,\n <R as Try>::Residual: Residual<Option<Self::Item>>,

\ud83d\udd2cThis is a nightly-only experimental API. (iterator_try_reduce #87053)
Reduces the elements to a single one by repeatedly applying a reducing operation. If the\n-closure returns a failure, the failure is propagated back to the caller immediately. Read more
1.0.0 \u00b7 source\u00a7

fn all<F>(&mut self, f: F) -> bool
where\n+closure returns a failure, the failure is propagated back to the caller immediately. Read more

1.0.0 \u00b7 source\u00a7

fn all<F>(&mut self, f: F) -> bool
where\n Self: Sized,\n- F: FnMut(Self::Item) -> bool,

Tests if every element of the iterator matches a predicate. Read more
1.0.0 \u00b7 source\u00a7

fn any<F>(&mut self, f: F) -> bool
where\n+ F: FnMut(Self::Item) -> bool,

Tests if every element of the iterator matches a predicate. Read more
1.0.0 \u00b7 source\u00a7

fn any<F>(&mut self, f: F) -> bool
where\n Self: Sized,\n- F: FnMut(Self::Item) -> bool,

Tests if any element of the iterator matches a predicate. Read more
1.0.0 \u00b7 source\u00a7

fn find<P>(&mut self, predicate: P) -> Option<Self::Item>
where\n+ F: FnMut(Self::Item) -> bool,

Tests if any element of the iterator matches a predicate. Read more
1.0.0 \u00b7 source\u00a7

fn find<P>(&mut self, predicate: P) -> Option<Self::Item>
where\n Self: Sized,\n- P: FnMut(&Self::Item) -> bool,

Searches for an element of an iterator that satisfies a predicate. Read more
1.30.0 \u00b7 source\u00a7

fn find_map<B, F>(&mut self, f: F) -> Option<B>
where\n+ P: FnMut(&Self::Item) -> bool,

Searches for an element of an iterator that satisfies a predicate. Read more
1.30.0 \u00b7 source\u00a7

fn find_map<B, F>(&mut self, f: F) -> Option<B>
where\n Self: Sized,\n F: FnMut(Self::Item) -> Option<B>,

Applies function to the elements of iterator and returns\n the first non-none result. Read more
source\u00a7

fn try_find<R>(\n &mut self,\n f: impl FnMut(&Self::Item) -> R,\n ) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryType
where\n Self: Sized,\n- R: Try<Output = bool>,\n+ R: Try<Output = bool>,\n <R as Try>::Residual: Residual<Option<Self::Item>>,

\ud83d\udd2cThis is a nightly-only experimental API. (try_find #63178)
Applies function to the elements of iterator and returns\n-the first true result or the first error. Read more
1.0.0 \u00b7 source\u00a7

fn position<P>(&mut self, predicate: P) -> Option<usize>
where\n+the first true result or the first error. Read more

1.0.0 \u00b7 source\u00a7

fn position<P>(&mut self, predicate: P) -> Option<usize>
where\n Self: Sized,\n- P: FnMut(Self::Item) -> bool,

Searches for an element in an iterator, returning its index. Read more
1.6.0 \u00b7 source\u00a7

fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>
where\n+ P: FnMut(Self::Item) -> bool,

Searches for an element in an iterator, returning its index. Read more
1.6.0 \u00b7 source\u00a7

fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>
where\n B: Ord,\n Self: Sized,\n F: FnMut(&Self::Item) -> B,

Returns the element that gives the maximum value from the\n specified function. Read more
1.15.0 \u00b7 source\u00a7

fn max_by<F>(self, compare: F) -> Option<Self::Item>
where\n Self: Sized,\n F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Returns the element that gives the maximum value with respect to the\n specified comparison function. Read more
1.6.0 \u00b7 source\u00a7

fn min_by_key<B, F>(self, f: F) -> Option<Self::Item>
where\n B: Ord,\n Self: Sized,\n F: FnMut(&Self::Item) -> B,

Returns the element that gives the minimum value from the\n specified function. Read more
1.15.0 \u00b7 source\u00a7

fn min_by<F>(self, compare: F) -> Option<Self::Item>
where\n Self: Sized,\n F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Returns the element that gives the minimum value with respect to the\n-specified comparison function. Read more
1.0.0 \u00b7 source\u00a7

fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)
where\n+specified comparison function. Read more

1.0.0 \u00b7 source\u00a7

fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)
where\n FromA: Default + Extend<A>,\n FromB: Default + Extend<B>,\n- Self: Sized + Iterator<Item = (A, B)>,

Converts an iterator of pairs into a pair of containers. Read more
1.36.0 \u00b7 source\u00a7

fn copied<'a, T>(self) -> Copied<Self>
where\n+ Self: Sized + Iterator<Item = (A, B)>,

Converts an iterator of pairs into a pair of containers. Read more
1.36.0 \u00b7 source\u00a7

fn copied<'a, T>(self) -> Copied<Self>
where\n T: 'a + Copy,\n- Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which copies all of its elements. Read more
1.0.0 \u00b7 source\u00a7

fn cloned<'a, T>(self) -> Cloned<Self>
where\n+ Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which copies all of its elements. Read more
1.0.0 \u00b7 source\u00a7

fn cloned<'a, T>(self) -> Cloned<Self>
where\n T: 'a + Clone,\n- Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which clones all of its elements. Read more
1.0.0 \u00b7 source\u00a7

fn cycle(self) -> Cycle<Self>
where\n- Self: Sized + Clone,

Repeats an iterator endlessly. Read more
source\u00a7

fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N>
where\n+ Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which clones all of its elements. Read more
1.0.0 \u00b7 source\u00a7

fn cycle(self) -> Cycle<Self>
where\n+ Self: Sized + Clone,

Repeats an iterator endlessly. Read more
source\u00a7

fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N>
where\n Self: Sized,

\ud83d\udd2cThis is a nightly-only experimental API. (iter_array_chunks #100450)
Returns an iterator over N elements of the iterator at a time. Read more
1.11.0 \u00b7 source\u00a7

fn sum<S>(self) -> S
where\n Self: Sized,\n S: Sum<Self::Item>,

Sums the elements of an iterator. Read more
1.11.0 \u00b7 source\u00a7

fn product<P>(self) -> P
where\n Self: Sized,\n P: Product<Self::Item>,

Iterates over the entire iterator, multiplying all the elements Read more
source\u00a7

fn cmp_by<I, F>(self, other: I, cmp: F) -> Ordering
where\n Self: Sized,\n I: IntoIterator,\n@@ -141,55 +141,55 @@\n Self: Sized,

Lexicographically compares the PartialOrd elements of\n this Iterator with those of another. The comparison works like short-circuit\n evaluation, returning a result without comparing the remaining elements.\n As soon as an order can be determined, the evaluation stops and a result is returned. Read more
source\u00a7

fn partial_cmp_by<I, F>(self, other: I, partial_cmp: F) -> Option<Ordering>
where\n Self: Sized,\n I: IntoIterator,\n F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>,

\ud83d\udd2cThis is a nightly-only experimental API. (iter_order_by #64295)
Lexicographically compares the elements of this Iterator with those\n-of another with respect to the specified comparison function. Read more
1.5.0 \u00b7 source\u00a7

fn eq<I>(self, other: I) -> bool
where\n+of another with respect to the specified comparison function. Read more

1.5.0 \u00b7 source\u00a7

fn eq<I>(self, other: I) -> bool
where\n I: IntoIterator,\n Self::Item: PartialEq<<I as IntoIterator>::Item>,\n Self: Sized,

Determines if the elements of this Iterator are equal to those of\n-another. Read more
source\u00a7

fn eq_by<I, F>(self, other: I, eq: F) -> bool
where\n+another. Read more

source\u00a7

fn eq_by<I, F>(self, other: I, eq: F) -> bool
where\n Self: Sized,\n I: IntoIterator,\n- F: FnMut(Self::Item, <I as IntoIterator>::Item) -> bool,

\ud83d\udd2cThis is a nightly-only experimental API. (iter_order_by #64295)
Determines if the elements of this Iterator are equal to those of\n-another with respect to the specified equality function. Read more
1.5.0 \u00b7 source\u00a7

fn ne<I>(self, other: I) -> bool
where\n+ F: FnMut(Self::Item, <I as IntoIterator>::Item) -> bool,

\ud83d\udd2cThis is a nightly-only experimental API. (iter_order_by #64295)
Determines if the elements of this Iterator are equal to those of\n+another with respect to the specified equality function. Read more
1.5.0 \u00b7 source\u00a7

fn ne<I>(self, other: I) -> bool
where\n I: IntoIterator,\n Self::Item: PartialEq<<I as IntoIterator>::Item>,\n Self: Sized,

Determines if the elements of this Iterator are not equal to those of\n-another. Read more
1.5.0 \u00b7 source\u00a7

fn lt<I>(self, other: I) -> bool
where\n+another. Read more

1.5.0 \u00b7 source\u00a7

fn lt<I>(self, other: I) -> bool
where\n I: IntoIterator,\n Self::Item: PartialOrd<<I as IntoIterator>::Item>,\n Self: Sized,

Determines if the elements of this Iterator are lexicographically\n-less than those of another. Read more
1.5.0 \u00b7 source\u00a7

fn le<I>(self, other: I) -> bool
where\n+less than those of another. Read more

1.5.0 \u00b7 source\u00a7

fn le<I>(self, other: I) -> bool
where\n I: IntoIterator,\n Self::Item: PartialOrd<<I as IntoIterator>::Item>,\n Self: Sized,

Determines if the elements of this Iterator are lexicographically\n-less or equal to those of another. Read more
1.5.0 \u00b7 source\u00a7

fn gt<I>(self, other: I) -> bool
where\n+less or equal to those of another. Read more

1.5.0 \u00b7 source\u00a7

fn gt<I>(self, other: I) -> bool
where\n I: IntoIterator,\n Self::Item: PartialOrd<<I as IntoIterator>::Item>,\n Self: Sized,

Determines if the elements of this Iterator are lexicographically\n-greater than those of another. Read more
1.5.0 \u00b7 source\u00a7

fn ge<I>(self, other: I) -> bool
where\n+greater than those of another. Read more

1.5.0 \u00b7 source\u00a7

fn ge<I>(self, other: I) -> bool
where\n I: IntoIterator,\n Self::Item: PartialOrd<<I as IntoIterator>::Item>,\n Self: Sized,

Determines if the elements of this Iterator are lexicographically\n-greater than or equal to those of another. Read more
1.82.0 \u00b7 source\u00a7

fn is_sorted_by<F>(self, compare: F) -> bool
where\n+greater than or equal to those of another. Read more

1.82.0 \u00b7 source\u00a7

fn is_sorted_by<F>(self, compare: F) -> bool
where\n Self: Sized,\n- F: FnMut(&Self::Item, &Self::Item) -> bool,

Checks if the elements of this iterator are sorted using the given comparator function. Read more
1.82.0 \u00b7 source\u00a7

fn is_sorted_by_key<F, K>(self, f: F) -> bool
where\n+ F: FnMut(&Self::Item, &Self::Item) -> bool,

Checks if the elements of this iterator are sorted using the given comparator function. Read more
1.82.0 \u00b7 source\u00a7

fn is_sorted_by_key<F, K>(self, f: F) -> bool
where\n Self: Sized,\n F: FnMut(Self::Item) -> K,\n K: PartialOrd,

Checks if the elements of this iterator are sorted using the given key extraction\n function. Read more

Auto Trait Implementations\u00a7

Blanket Implementations\u00a7

source\u00a7

impl<T> Any for T
where\n T: 'static + ?Sized,

source\u00a7

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source\u00a7

impl<T> Borrow<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n- T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n- T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n+ T: ?Sized,
source\u00a7

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source\u00a7

impl<T> BorrowMut<T> for T
where\n+ T: ?Sized,

source\u00a7

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source\u00a7

impl<T> CloneToUninit for T
where\n+ T: Clone,

source\u00a7

unsafe fn clone_to_uninit(&self, dst: *mut T)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. Read more
source\u00a7

impl<T> From<T> for T

source\u00a7

fn from(t: T) -> T

Returns the argument unchanged.

\n
source\u00a7

impl<T, U> Into<U> for T
where\n U: From<T>,

source\u00a7

fn into(self) -> U

Calls U::from(self).

\n

That is, this conversion is whatever the implementation of\n From<T> for U chooses to do.

\n
source\u00a7

impl<I> IntoIterator for I
where\n I: Iterator,

source\u00a7

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
source\u00a7

type IntoIter = I

Which kind of iterator are we turning this into?
source\u00a7

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source\u00a7

impl<T> ToOwned for T
where\n- T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n+ T: Clone,

source\u00a7

type Owned = T

The resulting type after obtaining ownership.
source\u00a7

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source\u00a7

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source\u00a7

impl<T, U> TryFrom<U> for T
where\n U: Into<T>,

source\u00a7

type Error = Infallible

The type returned in the event of a conversion error.
source\u00a7

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source\u00a7

impl<T, U> TryInto<U> for T
where\n U: TryFrom<T>,

source\u00a7

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source\u00a7

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\n"}, {"source1": "./usr/share/doc/rust-doc/html/proc_macro/tracked_env/fn.var.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/tracked_env/fn.var.html", "unified_diff": "@@ -1,6 +1,6 @@\n-var in proc_macro::tracked_env - Rust

Function proc_macro::tracked_env::var

source \u00b7
pub fn var<K: AsRef<OsStr> + AsRef<str>>(key: K) -> Result<String, VarError>
\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_tracked_env #99515)
Expand description

Retrieve an environment variable and add it to build dependency info.\n+var in proc_macro::tracked_env - Rust

Function proc_macro::tracked_env::var

source \u00b7
pub fn var<K: AsRef<OsStr> + AsRef<str>>(key: K) -> Result<String, VarError>
\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_tracked_env #99515)
Expand description

Retrieve an environment variable and add it to build dependency info.\n The build system executing the compiler will know that the variable was accessed during\n compilation, and will be able to rerun the build when the value of that variable changes.\n Besides the dependency tracking this function should be equivalent to env::var from the\n standard library, except that the argument must be UTF-8.

\n
\n"}, {"source1": "./usr/share/doc/rust-doc/html/proc_macro/tracked_path/fn.path.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/tracked_path/fn.path.html", "unified_diff": "@@ -1,3 +1,3 @@\n-path in proc_macro::tracked_path - Rust

Function proc_macro::tracked_path::path

source \u00b7
pub fn path<P: AsRef<str>>(path: P)
\ud83d\udd2cThis is a nightly-only experimental API. (track_path #99515)
Expand description

Track a file explicitly.

\n+path in proc_macro::tracked_path - Rust

Function proc_macro::tracked_path::path

source \u00b7
pub fn path<P: AsRef<str>>(path: P)
\ud83d\udd2cThis is a nightly-only experimental API. (track_path #99515)
Expand description

Track a file explicitly.

\n

Commonly used for tracking asset preprocessing.

\n
\n"}, {"source1": "./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.PartialEq.js", "source2": "./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.PartialEq.js", "unified_diff": null, "details": [{"source1": "js-beautify {}", "source2": "js-beautify {}", "unified_diff": "@@ -48,16 +48,16 @@\n [\"impl<T: ?Sized + PartialEq, A: Allocator> PartialEq for Arc<T, A>\"]\n ]],\n [\"core\", []],\n [\"proc_macro\", [\n [\"impl PartialEq for Delimiter\"],\n [\"impl PartialEq for Spacing\"],\n [\"impl PartialEq for SourceFile\"],\n- [\"impl PartialEq<char> for Punct\"],\n- [\"impl PartialEq<Punct> for char\"]\n+ [\"impl PartialEq<char> for Punct\"],\n+ [\"impl PartialEq<Punct> for char\"]\n ]],\n [\"std\", [\n [\"impl PartialEq for BacktraceStatus\"],\n [\"impl PartialEq for VarError\"],\n [\"impl PartialEq for ErrorKind\"],\n [\"impl PartialEq for SeekFrom\"],\n [\"impl PartialEq for Shutdown\"],\n@@ -167,8 +167,8 @@\n ]);\n if (window.register_implementors) {\n window.register_implementors(implementors);\n } else {\n window.pending_implementors = implementors;\n }\n })()\n-//{\"start\":57,\"fragment_lengths\":[27043,12,1307,30842,3288]}\n+//{\"start\":57,\"fragment_lengths\":[27043,12,1373,30842,3288]}\n"}]}]}]}]}]}