{"diffoscope-json-version": 1, "source1": "/srv/reproducible-results/rbuild-debian/r-b-build.J9aq9kAW/b1/rustc_1.90.0+dfsg1-1~exp1_amd64.changes", "source2": "/srv/reproducible-results/rbuild-debian/r-b-build.J9aq9kAW/b2/rustc_1.90.0+dfsg1-1~exp1_amd64.changes", "unified_diff": null, "details": [{"source1": "Files", "source2": "Files", "unified_diff": "@@ -7,15 +7,15 @@\n 8b4e89366f606a20c4aee26a84c5a622 89831632 libdevel optional libstd-rust-dev-wasm32_1.90.0+dfsg1-1~exp1_all.deb\n bade0a644a1b6845b24a12b66e21f0d7 38559592 libdevel optional libstd-rust-dev_1.90.0+dfsg1-1~exp1_amd64.deb\n 1332522a4d71849a39855641fd07acab 255780 devel optional rust-all_1.90.0+dfsg1-1~exp1_all.deb\n baadfb6a7d20d8c6c3965556abad4eb8 105044816 debug optional rust-analyzer-dbgsym_1.90.0+dfsg1-1~exp1_amd64.deb\n a6428f1ecdf485c522327660a1e51694 8985368 devel optional rust-analyzer_1.90.0+dfsg1-1~exp1_amd64.deb\n 10fcfcd0122ade3af08e33153d5e8532 65718636 debug optional rust-clippy-dbgsym_1.90.0+dfsg1-1~exp1_amd64.deb\n 72c6e31fc1307713672736993e3e64c0 3593312 devel optional rust-clippy_1.90.0+dfsg1-1~exp1_amd64.deb\n- 65545daf0f07042a1ec092b254e68993 23187728 doc optional rust-doc_1.90.0+dfsg1-1~exp1_all.deb\n+ 3de51822129fdba9b85695169fa20873 23185932 doc optional rust-doc_1.90.0+dfsg1-1~exp1_all.deb\n 70250d8aa96970db7c8f7887695af3fc 261468 devel optional rust-gdb_1.90.0+dfsg1-1~exp1_all.deb\n c266797b4851c00f394cf9b7aa729d96 265284 devel optional rust-lldb_1.90.0+dfsg1-1~exp1_all.deb\n cf654ccebfe858f9a477bd1918d3f000 1851364 devel optional rust-llvm_1.90.0+dfsg1-1~exp1_amd64.deb\n 7c0b1a13678b27e84f00eb3cf777b0ee 42804036 devel optional rust-src_1.90.0+dfsg1-1~exp1_all.deb\n 5a401aba623cdbee969c901e34eece14 34852220 debug optional rustc-dbgsym_1.90.0+dfsg1-1~exp1_amd64.deb\n 3c4beecef26a2f51546a77aead7d68a6 4316108 devel optional rustc_1.90.0+dfsg1-1~exp1_amd64.deb\n 93a0721cb5e9208607b0e203bd120191 23456020 debug optional rustfmt-dbgsym_1.90.0+dfsg1-1~exp1_amd64.deb\n"}, {"source1": "rust-doc_1.90.0+dfsg1-1~exp1_all.deb", "source2": "rust-doc_1.90.0+dfsg1-1~exp1_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 2025-10-16 09:20:34.000000 debian-binary\n--rw-r--r-- 0 0 0 987980 2025-10-16 09:20:34.000000 control.tar.xz\n--rw-r--r-- 0 0 0 22199556 2025-10-16 09:20:34.000000 data.tar.xz\n+-rw-r--r-- 0 0 0 987992 2025-10-16 09:20:34.000000 control.tar.xz\n+-rw-r--r-- 0 0 0 22197748 2025-10-16 09:20:34.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.90.0+dfsg1-1~exp1\n Architecture: all\n Maintainer: Debian Rust Maintainers \n-Installed-Size: 558469\n+Installed-Size: 558451\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": "@@ -41511,55 +41511,55 @@\n -rw-r--r-- 0 root (0) root (0) 4239 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/not_found.html\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/\n -rw-r--r-- 0 root (0) root (0) 4646 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/all.html\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/diagnostic/\n -rw-r--r-- 0 root (0) root (0) 400 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/diagnostic/enum.Level.html\n -rw-r--r-- 0 root (0) root (0) 428 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/diagnostic/struct.Diagnostic.html\n -rw-r--r-- 0 root (0) root (0) 420 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/diagnostic/trait.MultiSpan.html\n--rw-r--r-- 0 root (0) root (0) 25069 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.ConversionErrorKind.html\n--rw-r--r-- 0 root (0) root (0) 32074 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.Delimiter.html\n--rw-r--r-- 0 root (0) root (0) 27030 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.EscapeError.html\n--rw-r--r-- 0 root (0) root (0) 28246 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.Level.html\n--rw-r--r-- 0 root (0) root (0) 31621 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.Spacing.html\n--rw-r--r-- 0 root (0) root (0) 50727 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.TokenTree.html\n--rw-r--r-- 0 root (0) root (0) 4282 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/fn.is_available.html\n+-rw-r--r-- 0 root (0) root (0) 24919 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.ConversionErrorKind.html\n+-rw-r--r-- 0 root (0) root (0) 31834 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.Delimiter.html\n+-rw-r--r-- 0 root (0) root (0) 26970 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.EscapeError.html\n+-rw-r--r-- 0 root (0) root (0) 28096 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.Level.html\n+-rw-r--r-- 0 root (0) root (0) 31381 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.Spacing.html\n+-rw-r--r-- 0 root (0) root (0) 50547 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.TokenTree.html\n+-rw-r--r-- 0 root (0) root (0) 4252 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/fn.is_available.html\n -rw-r--r-- 0 root (0) root (0) 4080 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/fn.quote.html\n -rw-r--r-- 0 root (0) root (0) 4055 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/fn.quote_span.html\n -rw-r--r-- 0 root (0) root (0) 10933 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/index.html\n -rw-r--r-- 0 root (0) root (0) 336 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/macro.quote!.html\n -rw-r--r-- 0 root (0) root (0) 4296 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/macro.quote.html\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/quote/\n -rw-r--r-- 0 root (0) root (0) 392 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/quote/fn.quote.html\n -rw-r--r-- 0 root (0) root (0) 412 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/quote/fn.quote_span.html\n -rw-r--r-- 0 root (0) root (0) 362 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/sidebar-items1.90.0.js\n--rw-r--r-- 0 root (0) root (0) 45750 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Diagnostic.html\n--rw-r--r-- 0 root (0) root (0) 26690 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.ExpandError.html\n--rw-r--r-- 0 root (0) root (0) 40209 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Group.html\n--rw-r--r-- 0 root (0) root (0) 38407 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Ident.html\n--rw-r--r-- 0 root (0) root (0) 26824 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.LexError.html\n--rw-r--r-- 0 root (0) root (0) 85993 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Literal.html\n--rw-r--r-- 0 root (0) root (0) 43240 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Punct.html\n--rw-r--r-- 0 root (0) root (0) 47406 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Span.html\n--rw-r--r-- 0 root (0) root (0) 57701 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.TokenStream.html\n+-rw-r--r-- 0 root (0) root (0) 45570 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Diagnostic.html\n+-rw-r--r-- 0 root (0) root (0) 26600 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.ExpandError.html\n+-rw-r--r-- 0 root (0) root (0) 40059 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Group.html\n+-rw-r--r-- 0 root (0) root (0) 38197 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Ident.html\n+-rw-r--r-- 0 root (0) root (0) 26734 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.LexError.html\n+-rw-r--r-- 0 root (0) root (0) 84763 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Literal.html\n+-rw-r--r-- 0 root (0) root (0) 42760 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Punct.html\n+-rw-r--r-- 0 root (0) root (0) 47106 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Span.html\n+-rw-r--r-- 0 root (0) root (0) 57431 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.TokenStream.html\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/to_tokens/\n -rw-r--r-- 0 root (0) root (0) 416 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/to_tokens/trait.ToTokens.html\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/token_stream/\n -rw-r--r-- 0 root (0) root (0) 4266 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/token_stream/index.html\n -rw-r--r-- 0 root (0) root (0) 47 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/token_stream/sidebar-items1.90.0.js\n--rw-r--r-- 0 root (0) root (0) 135326 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/token_stream/struct.IntoIter.html\n+-rw-r--r-- 0 root (0) root (0) 133841 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/token_stream/struct.IntoIter.html\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_env/\n--rw-r--r-- 0 root (0) root (0) 5348 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_env/fn.var.html\n+-rw-r--r-- 0 root (0) root (0) 5267 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_env/fn.var.html\n -rw-r--r-- 0 root (0) root (0) 4607 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_env/index.html\n -rw-r--r-- 0 root (0) root (0) 38 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_env/sidebar-items1.90.0.js\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_path/\n--rw-r--r-- 0 root (0) root (0) 4035 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_path/fn.path.html\n+-rw-r--r-- 0 root (0) root (0) 4008 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_path/fn.path.html\n -rw-r--r-- 0 root (0) root (0) 4210 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_path/index.html\n -rw-r--r-- 0 root (0) root (0) 39 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_path/sidebar-items1.90.0.js\n -rw-r--r-- 0 root (0) root (0) 9303 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/trait.MultiSpan.html\n--rw-r--r-- 0 root (0) root (0) 50711 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/trait.ToTokens.html\n+-rw-r--r-- 0 root (0) root (0) 50141 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/proc_macro/trait.ToTokens.html\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/reference/\n -rw-r--r-- 0 root (0) root (0) 72 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/reference/.nojekyll\n -rw-r--r-- 0 root (0) root (0) 20544 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/reference/abi.html\n -rw-r--r-- 0 root (0) root (0) 11113 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/reference/appendices.html\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/reference/attributes/\n -rw-r--r-- 0 root (0) root (0) 72870 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/reference/attributes/codegen.html\n -rw-r--r-- 0 root (0) root (0) 23986 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/reference/attributes/debugger.html\n@@ -46484,43 +46484,43 @@\n -rw-r--r-- 0 root (0) root (0) 4481 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/style-guide/toc-281b99ce.js\n -rw-r--r-- 0 root (0) root (0) 2865 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/style-guide/toc.html\n -rw-r--r-- 0 root (0) root (0) 1694 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/style-guide/tomorrow-night-4c0ae647.css\n -rw-r--r-- 0 root (0) root (0) 14499 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/style-guide/types.html\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/\n -rw-r--r-- 0 root (0) root (0) 6428 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/all.html\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/bench/\n--rw-r--r-- 0 root (0) root (0) 4555 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/bench/fn.benchmark.html\n+-rw-r--r-- 0 root (0) root (0) 4474 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/bench/fn.benchmark.html\n -rw-r--r-- 0 root (0) root (0) 3972 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/bench/fn.black_box.html\n -rw-r--r-- 0 root (0) root (0) 3734 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/bench/fn.fmt_bench_samples.html\n--rw-r--r-- 0 root (0) root (0) 3846 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/bench/fn.iter.html\n--rw-r--r-- 0 root (0) root (0) 4377 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/bench/fn.run_once.html\n+-rw-r--r-- 0 root (0) root (0) 3819 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/bench/fn.iter.html\n+-rw-r--r-- 0 root (0) root (0) 4323 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/bench/fn.run_once.html\n -rw-r--r-- 0 root (0) root (0) 5346 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/bench/index.html\n -rw-r--r-- 0 root (0) root (0) 130 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/bench/sidebar-items1.90.0.js\n--rw-r--r-- 0 root (0) root (0) 29722 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/bench/struct.BenchSamples.html\n--rw-r--r-- 0 root (0) root (0) 27911 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/bench/struct.Bencher.html\n+-rw-r--r-- 0 root (0) root (0) 29452 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/bench/struct.BenchSamples.html\n+-rw-r--r-- 0 root (0) root (0) 27695 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/bench/struct.Bencher.html\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/cli/\n -rw-r--r-- 0 root (0) root (0) 408 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/cli/fn.parse_opts.html\n -rw-r--r-- 0 root (0) root (0) 396 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/cli/struct.TestOpts.html\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/console/\n -rw-r--r-- 0 root (0) root (0) 416 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/console/fn.run_tests_console.html\n--rw-r--r-- 0 root (0) root (0) 3643 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/constant.ERROR_EXIT_CODE.html\n--rw-r--r-- 0 root (0) root (0) 28295 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/enum.ColorConfig.html\n--rw-r--r-- 0 root (0) root (0) 32172 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/enum.NamePadding.html\n--rw-r--r-- 0 root (0) root (0) 32044 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/enum.OutputFormat.html\n--rw-r--r-- 0 root (0) root (0) 30094 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/enum.RunIgnored.html\n--rw-r--r-- 0 root (0) root (0) 32919 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/enum.ShouldPanic.html\n--rw-r--r-- 0 root (0) root (0) 29887 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/enum.TestFn.html\n--rw-r--r-- 0 root (0) root (0) 38125 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/enum.TestName.html\n--rw-r--r-- 0 root (0) root (0) 33547 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/enum.TestType.html\n--rw-r--r-- 0 root (0) root (0) 4254 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/fn.assert_test_result.html\n+-rw-r--r-- 0 root (0) root (0) 3613 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/constant.ERROR_EXIT_CODE.html\n+-rw-r--r-- 0 root (0) root (0) 28145 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/enum.ColorConfig.html\n+-rw-r--r-- 0 root (0) root (0) 31872 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/enum.NamePadding.html\n+-rw-r--r-- 0 root (0) root (0) 31804 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/enum.OutputFormat.html\n+-rw-r--r-- 0 root (0) root (0) 29854 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/enum.RunIgnored.html\n+-rw-r--r-- 0 root (0) root (0) 32559 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/enum.ShouldPanic.html\n+-rw-r--r-- 0 root (0) root (0) 29287 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/enum.TestFn.html\n+-rw-r--r-- 0 root (0) root (0) 37675 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/enum.TestName.html\n+-rw-r--r-- 0 root (0) root (0) 33247 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/enum.TestType.html\n+-rw-r--r-- 0 root (0) root (0) 4194 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/fn.assert_test_result.html\n -rw-r--r-- 0 root (0) root (0) 3820 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/fn.convert_benchmarks_to_tests.html\n -rw-r--r-- 0 root (0) root (0) 3865 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/fn.filter_tests.html\n--rw-r--r-- 0 root (0) root (0) 4398 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/fn.run_test.html\n--rw-r--r-- 0 root (0) root (0) 4322 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/fn.run_tests.html\n--rw-r--r-- 0 root (0) root (0) 4185 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/fn.run_tests_console.html\n+-rw-r--r-- 0 root (0) root (0) 4278 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/fn.run_test.html\n+-rw-r--r-- 0 root (0) root (0) 4202 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/fn.run_tests.html\n+-rw-r--r-- 0 root (0) root (0) 4125 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/fn.run_tests_console.html\n -rw-r--r-- 0 root (0) root (0) 3871 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/fn.test_main.html\n -rw-r--r-- 0 root (0) root (0) 3903 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/fn.test_main_static.html\n -rw-r--r-- 0 root (0) root (0) 4007 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/fn.test_main_static_abort.html\n -rw-r--r-- 0 root (0) root (0) 4097 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/fn.test_main_with_exit_callback.html\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/helpers/\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/helpers/metrics/\n -rw-r--r-- 0 root (0) root (0) 420 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/helpers/metrics/struct.Metric.html\n@@ -46531,43 +46531,43 @@\n -rw-r--r-- 0 root (0) root (0) 404 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/options/enum.OutputFormat.html\n -rw-r--r-- 0 root (0) root (0) 396 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/options/enum.RunIgnored.html\n -rw-r--r-- 0 root (0) root (0) 420 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/options/enum.RunStrategy.html\n -rw-r--r-- 0 root (0) root (0) 400 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/options/enum.ShouldPanic.html\n -rw-r--r-- 0 root (0) root (0) 392 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/options/struct.Options.html\n -rw-r--r-- 0 root (0) root (0) 468 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/sidebar-items1.90.0.js\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/stats/\n--rw-r--r-- 0 root (0) root (0) 4608 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/stats/fn.winsorize.html\n+-rw-r--r-- 0 root (0) root (0) 4554 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/stats/fn.winsorize.html\n -rw-r--r-- 0 root (0) root (0) 5071 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/stats/index.html\n -rw-r--r-- 0 root (0) root (0) 83 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/stats/sidebar-items1.90.0.js\n--rw-r--r-- 0 root (0) root (0) 37712 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/stats/struct.Summary.html\n--rw-r--r-- 0 root (0) root (0) 29106 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/stats/trait.Stats.html\n--rw-r--r-- 0 root (0) root (0) 29602 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/struct.Options.html\n--rw-r--r-- 0 root (0) root (0) 34961 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/struct.TestDesc.html\n--rw-r--r-- 0 root (0) root (0) 22449 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/struct.TestDescAndFn.html\n--rw-r--r-- 0 root (0) root (0) 31563 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/struct.TestId.html\n--rw-r--r-- 0 root (0) root (0) 33681 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/struct.TestOpts.html\n+-rw-r--r-- 0 root (0) root (0) 36713 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/stats/struct.Summary.html\n+-rw-r--r-- 0 root (0) root (0) 27783 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/stats/trait.Stats.html\n+-rw-r--r-- 0 root (0) root (0) 29272 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/struct.Options.html\n+-rw-r--r-- 0 root (0) root (0) 34211 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/struct.TestDesc.html\n+-rw-r--r-- 0 root (0) root (0) 22209 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/struct.TestDescAndFn.html\n+-rw-r--r-- 0 root (0) root (0) 31203 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/struct.TestId.html\n+-rw-r--r-- 0 root (0) root (0) 32871 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/struct.TestOpts.html\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/\n--rw-r--r-- 0 root (0) root (0) 30523 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/enum.RunIgnored.html\n--rw-r--r-- 0 root (0) root (0) 25878 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/enum.RunStrategy.html\n--rw-r--r-- 0 root (0) root (0) 33390 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/enum.ShouldPanic.html\n--rw-r--r-- 0 root (0) root (0) 38677 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/enum.TestName.html\n--rw-r--r-- 0 root (0) root (0) 31167 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/enum.TestResult.html\n--rw-r--r-- 0 root (0) root (0) 34018 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/enum.TestType.html\n+-rw-r--r-- 0 root (0) root (0) 30307 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/enum.RunIgnored.html\n+-rw-r--r-- 0 root (0) root (0) 25743 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/enum.RunStrategy.html\n+-rw-r--r-- 0 root (0) root (0) 33066 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/enum.ShouldPanic.html\n+-rw-r--r-- 0 root (0) root (0) 38272 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/enum.TestName.html\n+-rw-r--r-- 0 root (0) root (0) 30951 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/enum.TestResult.html\n+-rw-r--r-- 0 root (0) root (0) 33748 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/enum.TestType.html\n -rw-r--r-- 0 root (0) root (0) 4655 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/fn.parse_opts.html\n -rw-r--r-- 0 root (0) root (0) 11083 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/index.html\n -rw-r--r-- 0 root (0) root (0) 252 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/sidebar-items1.90.0.js\n--rw-r--r-- 0 root (0) root (0) 29857 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/struct.Metric.html\n--rw-r--r-- 0 root (0) root (0) 30341 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/struct.MetricMap.html\n--rw-r--r-- 0 root (0) root (0) 30013 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/struct.Options.html\n--rw-r--r-- 0 root (0) root (0) 35384 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestDesc.html\n--rw-r--r-- 0 root (0) root (0) 22770 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestDescAndFn.html\n--rw-r--r-- 0 root (0) root (0) 32071 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestExecTime.html\n--rw-r--r-- 0 root (0) root (0) 32034 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestId.html\n--rw-r--r-- 0 root (0) root (0) 34049 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestOpts.html\n--rw-r--r-- 0 root (0) root (0) 36413 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestTimeOptions.html\n+-rw-r--r-- 0 root (0) root (0) 29587 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/struct.Metric.html\n+-rw-r--r-- 0 root (0) root (0) 30044 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/struct.MetricMap.html\n+-rw-r--r-- 0 root (0) root (0) 29716 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/struct.Options.html\n+-rw-r--r-- 0 root (0) root (0) 34709 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestDesc.html\n+-rw-r--r-- 0 root (0) root (0) 22554 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestDescAndFn.html\n+-rw-r--r-- 0 root (0) root (0) 31855 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestExecTime.html\n+-rw-r--r-- 0 root (0) root (0) 31710 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestId.html\n+-rw-r--r-- 0 root (0) root (0) 33320 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestOpts.html\n+-rw-r--r-- 0 root (0) root (0) 36062 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestTimeOptions.html\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test_result/\n -rw-r--r-- 0 root (0) root (0) 416 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/test_result/enum.TestResult.html\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/time/\n -rw-r--r-- 0 root (0) root (0) 432 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/time/struct.TestExecTime.html\n -rw-r--r-- 0 root (0) root (0) 444 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/time/struct.TestTimeOptions.html\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/types/\n -rw-r--r-- 0 root (0) root (0) 400 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/test/types/enum.NamePadding.html\n@@ -46603,15 +46603,15 @@\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/clone/\n -rw-r--r-- 0 root (0) root (0) 45786 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/clone/trait.Clone.js\n -rw-r--r-- 0 root (0) root (0) 759 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/clone/trait.CloneToUninit.js\n -rw-r--r-- 0 root (0) root (0) 2592 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/clone/trait.UseCloned.js\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/cmp/\n -rw-r--r-- 0 root (0) root (0) 20562 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.Eq.js\n -rw-r--r-- 0 root (0) root (0) 9300 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.Ord.js\n--rw-r--r-- 0 root (0) root (0) 78814 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.PartialEq.js\n+-rw-r--r-- 0 root (0) root (0) 78748 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.PartialEq.js\n -rw-r--r-- 0 root (0) root (0) 36774 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.PartialOrd.js\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/convert/\n drwxr-xr-x 0 root (0) root (0) 0 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/convert/num/\n -rw-r--r-- 0 root (0) root (0) 292 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/convert/num/trait.FloatToInt.js\n -rw-r--r-- 0 root (0) root (0) 3608 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/convert/trait.AsMut.js\n -rw-r--r-- 0 root (0) root (0) 13407 2025-10-16 09:20:34.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/convert/trait.AsRef.js\n -rw-r--r-- 0 root (0) root (0) 97248 2025-10-16 09:20:34.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.ConversionErrorKind.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/enum.ConversionErrorKind.html", "unified_diff": "@@ -1,18 +1,18 @@\n ConversionErrorKind in proc_macro - Rust

Enum ConversionErrorKind

Source
pub enum ConversionErrorKind {\n     FailedToUnescape(EscapeError),\n     InvalidLiteralKind,\n }
\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_value #136652)
Expand description

Errors returned when trying to retrieve a literal unescaped value.

\n

Variants\u00a7

\u00a7

FailedToUnescape(EscapeError)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_value #136652)

The literal failed to be escaped, take a look at EscapeError for more information.

\n
\u00a7

InvalidLiteralKind

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_value #136652)

Trying to convert a literal with the wrong type.

\n-

Trait Implementations\u00a7

Source\u00a7

impl Debug for ConversionErrorKind

Source\u00a7

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

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

impl PartialEq for ConversionErrorKind

Source\u00a7

fn eq(&self, other: &ConversionErrorKind) -> 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 Debug for ConversionErrorKind

Source\u00a7

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

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

impl PartialEq for ConversionErrorKind

Source\u00a7

fn eq(&self, other: &ConversionErrorKind) -> 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 ConversionErrorKind

Source\u00a7

impl StructuralPartialEq for ConversionErrorKind

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, 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.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 duplicate 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 duplicate 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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.EscapeError.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/enum.EscapeError.html", "unified_diff": "@@ -46,16 +46,16 @@\n
\u00a7

NonAsciiCharInByte

Non-ascii character in byte literal, byte string literal, or raw byte string literal.

\n
\u00a7

NulInCStr

\\0 in a C string literal.

\n
\u00a7

UnskippedWhitespaceWarning

After a line ending with \u2019', the next line contains whitespace\n characters that are not skipped.

\n
\u00a7

MultipleSkippedLinesWarning

After a line ending with \u2019', multiple lines are skipped.

\n

Auto Trait Implementations\u00a7

\u00a7

impl Freeze for EscapeError

\u00a7

impl RefUnwindSafe for EscapeError

\u00a7

impl Send for EscapeError

\u00a7

impl Sync for EscapeError

\u00a7

impl Unpin for EscapeError

\u00a7

impl UnwindSafe for EscapeError

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, 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 duplicate 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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 duplicate 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 duplicate 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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
Source\u00a7

impl ToTokens for TokenTree

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Write self to the given TokenStream. Read more
Source\u00a7

fn into_token_stream(self) -> TokenStream

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
Source\u00a7

fn to_token_stream(&self) -> TokenStream

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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

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 is_available

1.57.0 \u00b7 Source
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 is_available

1.57.0 \u00b7 Source
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 duplicate 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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 ExpandError

Source
#[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

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": "@@ -22,19 +22,19 @@\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 duplicate 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.
Source\u00a7

impl ToTokens for Group

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Write self to the given TokenStream. Read more
Source\u00a7

fn to_token_stream(&self) -> TokenStream

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
Source\u00a7

fn into_token_stream(self) -> TokenStream
where\n Self: Sized,

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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

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,40 +1,40 @@\n Ident in proc_macro - Rust

Struct Ident

1.29.0 \u00b7 Source
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 duplicate 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.
Source\u00a7

impl ToTokens for Ident

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Write self to the given TokenStream. Read more
Source\u00a7

fn to_token_stream(&self) -> TokenStream

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
Source\u00a7

fn into_token_stream(self) -> TokenStream
where\n Self: Sized,

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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

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 LexError

1.15.0 \u00b7 Source
#[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

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,321 +1,321 @@\n Literal in proc_macro - Rust

Struct Literal

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

A literal string (\"hello\"), byte string (b\"hello\"), C string (c\"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
Source

pub fn str_value(&self) -> Result<String, ConversionErrorKind>

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_value #136652)

Returns the unescaped string value if the current literal is a string or a string literal.

\n-
Source

pub fn cstr_value(&self) -> Result<Vec<u8>, ConversionErrorKind>

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_value #136652)

Returns the unescaped string value if the current literal is a c-string or a c-string\n+

Source

pub fn cstr_value(&self) -> Result<Vec<u8>, ConversionErrorKind>

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_value #136652)

Returns the unescaped string value if the current literal is a c-string or a c-string\n literal.

\n-
Source

pub fn byte_str_value(&self) -> Result<Vec<u8>, ConversionErrorKind>

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_value #136652)

Returns the unescaped string value if the current literal is a byte string or a byte string\n+

Source

pub fn byte_str_value(&self) -> Result<Vec<u8>, ConversionErrorKind>

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_value #136652)

Returns the unescaped string value if the current literal is a byte string or a byte string\n literal.

\n

Trait Implementations\u00a7

1.29.0 \u00b7 Source\u00a7

impl Clone for Literal

Source\u00a7

fn clone(&self) -> Literal

Returns a duplicate 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
Source\u00a7

impl ToTokens for Literal

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Write self to the given TokenStream. Read more
Source\u00a7

fn to_token_stream(&self) -> TokenStream

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
Source\u00a7

fn into_token_stream(self) -> TokenStream
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

Source\u00a7

impl ToTokens for Literal

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Write self to the given TokenStream. Read more
Source\u00a7

fn to_token_stream(&self) -> TokenStream

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
Source\u00a7

fn into_token_stream(self) -> TokenStream
where\n Self: Sized,

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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

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,33 +1,33 @@\n Punct in proc_macro - Rust

Struct Punct

1.29.0 \u00b7 Source
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 duplicate 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.
Source\u00a7

impl ToTokens for Punct

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Write self to the given TokenStream. Read more
Source\u00a7

fn to_token_stream(&self) -> TokenStream

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
Source\u00a7

fn into_token_stream(self) -> TokenStream
where\n Self: Sized,

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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

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.Span.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/struct.Span.html", "unified_diff": "@@ -9,34 +9,34 @@\n call site (everything else).\n The span location is taken from the call-site.

\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
1.88.0 \u00b7 Source

pub fn start(&self) -> Span

Creates an empty span pointing to directly before this span.

\n
1.88.0 \u00b7 Source

pub fn end(&self) -> Span

Creates an empty span pointing to directly after this span.

\n-
1.88.0 \u00b7 Source

pub fn line(&self) -> usize

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

\n+
1.88.0 \u00b7 Source

pub fn line(&self) -> usize

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-
1.88.0 \u00b7 Source

pub fn column(&self) -> usize

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

\n+
1.88.0 \u00b7 Source

pub fn column(&self) -> usize

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
1.88.0 \u00b7 Source

pub fn file(&self) -> String

The path to the source file in which this span occurs, for display purposes.

\n

This might not correspond to a valid file system path.\n It might be remapped (e.g. \"/src/lib.rs\") or an artificial path (e.g. \"<command line>\").

\n-
1.88.0 \u00b7 Source

pub fn local_file(&self) -> Option<PathBuf>

The path to the source file in which this span occurs on the local file system.

\n+
1.88.0 \u00b7 Source

pub fn local_file(&self) -> Option<PathBuf>

The path to the source file in which this span occurs on the local file system.

\n

This is the actual path on disk. It is unaffected by path remapping.

\n

This path should not be embedded in the output of the macro; prefer file() instead.

\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@@ -46,18 +46,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 duplicate 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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 TokenStream

1.15.0 \u00b7 Source
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
Source\u00a7

impl ToTokens for TokenStream

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Write self to the given TokenStream. Read more
Source\u00a7

fn into_token_stream(self) -> TokenStream

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
Source\u00a7

fn to_token_stream(&self) -> TokenStream

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. 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
Source\u00a7

impl ToTokens for TokenStream

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Write self to the given TokenStream. Read more
Source\u00a7

fn into_token_stream(self) -> TokenStream

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
Source\u00a7

fn to_token_stream(&self) -> TokenStream

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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

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 IntoIter

1.29.0 \u00b7 Source
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 duplicate 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 duplicate 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,

Creates a \u201cby reference\u201d adapter for this instance of Iterator. 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: Copy + 'a,\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: Clone + 'a,\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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. 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 var

Source
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 var

Source
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 path

Source
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 path

Source
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/proc_macro/trait.ToTokens.html", "source2": "./usr/share/doc/rust-doc/html/proc_macro/trait.ToTokens.html", "unified_diff": "@@ -37,8 +37,8 @@\n

Provided Methods\u00a7

Source

fn to_token_stream(&self) -> TokenStream

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)

Convert self directly into a TokenStream object.

\n

This method is implicitly implemented using to_tokens, and acts as a\n convenience method for consumers of the ToTokens trait.

\n
Source

fn into_token_stream(self) -> TokenStream
where\n Self: Sized,

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)

Convert self directly into a TokenStream object.

\n

This method is implicitly implemented using to_tokens, and acts as a\n convenience method for consumers of the ToTokens trait.

\n-

Implementations on Foreign Types\u00a7

Source\u00a7

impl ToTokens for bool

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for char

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for f32

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for f64

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for i8

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for i16

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for i32

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for i64

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for i128

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for isize

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for str

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for u8

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for u16

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for u32

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for u64

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for u128

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for usize

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for CString

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for String

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for CStr

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl<T: ToTokens + ToOwned + ?Sized> ToTokens for Cow<'_, T>

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl<T: ToTokens + ?Sized> ToTokens for &T

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl<T: ToTokens + ?Sized> ToTokens for &mut T

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl<T: ToTokens + ?Sized> ToTokens for Box<T>

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl<T: ToTokens + ?Sized> ToTokens for Rc<T>

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl<T: ToTokens> ToTokens for Option<T>

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)

Implementors\u00a7

\n+

Implementations on Foreign Types\u00a7

Source\u00a7

impl ToTokens for bool

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for char

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for f32

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for f64

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for i8

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for i16

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for i32

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for i64

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for i128

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for isize

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for str

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for u8

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for u16

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for u32

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for u64

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for u128

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for usize

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for CString

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for String

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl ToTokens for CStr

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl<T: ToTokens + ToOwned + ?Sized> ToTokens for Cow<'_, T>

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl<T: ToTokens + ?Sized> ToTokens for &T

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl<T: ToTokens + ?Sized> ToTokens for &mut T

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl<T: ToTokens + ?Sized> ToTokens for Box<T>

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl<T: ToTokens + ?Sized> ToTokens for Rc<T>

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)
Source\u00a7

impl<T: ToTokens> ToTokens for Option<T>

Source\u00a7

fn to_tokens(&self, tokens: &mut TokenStream)

\ud83d\udd2cThis is a nightly-only experimental API. (proc_macro_totokens #130977)

Implementors\u00a7

Source\u00a7

impl ToTokens for TokenTree

Source\u00a7

impl ToTokens for Group

Source\u00a7

impl ToTokens for Ident

Source\u00a7

impl ToTokens for Literal

Source\u00a7

impl ToTokens for Punct

Source\u00a7

impl ToTokens for TokenStream

\n"}, {"source1": "./usr/share/doc/rust-doc/html/test/bench/fn.benchmark.html", "source2": "./usr/share/doc/rust-doc/html/test/bench/fn.benchmark.html", "unified_diff": "@@ -1,8 +1,8 @@\n benchmark in test::bench - Rust

Function benchmark

Source
pub fn benchmark<F>(\n     id: TestId,\n     desc: TestDesc,\n-    monitor_ch: Sender<CompletedTest>,\n-    nocapture: bool,\n+    monitor_ch: Sender<CompletedTest>,\n+    nocapture: bool,\n     f: F,\n )
where\n- F: FnMut(&mut Bencher) -> Result<(), String>,
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\n+ F: FnMut(&mut Bencher) -> Result<(), String>,
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\n"}, {"source1": "./usr/share/doc/rust-doc/html/test/bench/fn.iter.html", "source2": "./usr/share/doc/rust-doc/html/test/bench/fn.iter.html", "unified_diff": "@@ -1,2 +1,2 @@\n-iter in test::bench - Rust

Function iter

Source
pub fn iter<T, F>(inner: &mut F) -> Summary
where\n+iter in test::bench - Rust

Function iter

Source
pub fn iter<T, F>(inner: &mut F) -> Summary
where\n F: FnMut() -> T,
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\n"}, {"source1": "./usr/share/doc/rust-doc/html/test/bench/fn.run_once.html", "source2": "./usr/share/doc/rust-doc/html/test/bench/fn.run_once.html", "unified_diff": "@@ -1,2 +1,2 @@\n-run_once in test::bench - Rust

Function run_once

Source
pub fn run_once<F>(f: F) -> Result<(), String>
where\n- F: FnMut(&mut Bencher) -> Result<(), String>,
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\n+run_once in test::bench - Rust

Function run_once

Source
pub fn run_once<F>(f: F) -> Result<(), String>
where\n+ F: FnMut(&mut Bencher) -> Result<(), String>,
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\n"}, {"source1": "./usr/share/doc/rust-doc/html/test/bench/struct.BenchSamples.html", "source2": "./usr/share/doc/rust-doc/html/test/bench/struct.BenchSamples.html", "unified_diff": "@@ -1,17 +1,17 @@\n BenchSamples in test::bench - Rust

Struct BenchSamples

Source
pub struct BenchSamples {\n     pub ns_iter_summ: Summary,\n-    pub mb_s: usize,\n-}
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Fields\u00a7

\u00a7ns_iter_summ: Summary
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7mb_s: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for BenchSamples

Source\u00a7

fn clone(&self) -> BenchSamples

Returns a duplicate 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 BenchSamples

Source\u00a7

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

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

impl PartialEq for BenchSamples

Source\u00a7

fn eq(&self, other: &BenchSamples) -> 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+ pub mb_s: usize,\n+}
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Fields\u00a7

\u00a7ns_iter_summ: Summary
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7mb_s: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for BenchSamples

Source\u00a7

fn clone(&self) -> BenchSamples

Returns a duplicate 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 BenchSamples

Source\u00a7

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

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

impl PartialEq for BenchSamples

Source\u00a7

fn eq(&self, other: &BenchSamples) -> 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 StructuralPartialEq for BenchSamples

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/bench/struct.Bencher.html", "source2": "./usr/share/doc/rust-doc/html/test/bench/struct.Bencher.html", "unified_diff": "@@ -1,23 +1,23 @@\n Bencher in test::bench - Rust

Struct Bencher

Source
pub struct Bencher {\n-    pub bytes: u64,\n+    pub bytes: u64,\n     /* private fields */\n }
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

Manager of the benchmarking runs.

\n

This is fed into functions marked with #[bench] to allow for\n set-up & tear-down before running a piece of code repeatedly via a\n call to iter.

\n-

Fields\u00a7

\u00a7bytes: u64
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl Bencher

Source

pub fn iter<T, F>(&mut self, inner: F)
where\n+

Fields\u00a7

\u00a7bytes: u64
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl Bencher

Source

pub fn iter<T, F>(&mut self, inner: F)
where\n F: FnMut() -> T,

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Callback for benchmark functions to run in their body.

\n
Source

pub fn bench<F>(&mut self, f: F) -> Result<Option<Summary>, String>
where\n- F: FnMut(&mut Bencher) -> Result<(), String>,

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for Bencher

Source\u00a7

fn clone(&self) -> Bencher

Returns a duplicate 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

Auto Trait Implementations\u00a7

Blanket Implementations\u00a7

Source\u00a7

impl<T> Any for T
where\n+ F: FnMut(&mut Bencher) -> Result<(), String>,

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for Bencher

Source\u00a7

fn clone(&self) -> Bencher

Returns a duplicate 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

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/constant.ERROR_EXIT_CODE.html", "source2": "./usr/share/doc/rust-doc/html/test/constant.ERROR_EXIT_CODE.html", "unified_diff": "@@ -1,2 +1,2 @@\n-ERROR_EXIT_CODE in test - Rust

Constant ERROR_EXIT_CODE

Source
pub const ERROR_EXIT_CODE: i32 = 101;
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

Process exit code to be used to indicate test failures.

\n+ERROR_EXIT_CODE in test - Rust

Constant ERROR_EXIT_CODE

Source
pub const ERROR_EXIT_CODE: i32 = 101;
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

Process exit code to be used to indicate test failures.

\n
\n"}, {"source1": "./usr/share/doc/rust-doc/html/test/enum.ColorConfig.html", "source2": "./usr/share/doc/rust-doc/html/test/enum.ColorConfig.html", "unified_diff": "@@ -1,18 +1,18 @@\n ColorConfig in test - Rust

Enum ColorConfig

Source
pub enum ColorConfig {\n     AutoColor,\n     AlwaysColor,\n     NeverColor,\n }
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

Whether should console output be colored or not

\n

Variants\u00a7

\u00a7

AutoColor

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

AlwaysColor

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

NeverColor

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for ColorConfig

Source\u00a7

fn clone(&self) -> ColorConfig

Returns a duplicate 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 ColorConfig

Source\u00a7

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

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

impl Default for ColorConfig

Source\u00a7

fn default() -> ColorConfig

Returns the \u201cdefault value\u201d for a type. Read more
Source\u00a7

impl Copy for ColorConfig

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/enum.NamePadding.html", "source2": "./usr/share/doc/rust-doc/html/test/enum.NamePadding.html", "unified_diff": "@@ -1,19 +1,19 @@\n NamePadding in test - Rust

Enum NamePadding

Source
pub enum NamePadding {\n     PadNone,\n     PadOnRight,\n-}
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Variants\u00a7

\u00a7

PadNone

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

PadOnRight

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for NamePadding

Source\u00a7

fn clone(&self) -> NamePadding

Returns a duplicate 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 NamePadding

Source\u00a7

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

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

impl Hash for NamePadding

Source\u00a7

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 \u00b7 Source\u00a7

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n+}
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Variants\u00a7

\u00a7

PadNone

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

PadOnRight

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for NamePadding

Source\u00a7

fn clone(&self) -> NamePadding

Returns a duplicate 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 NamePadding

Source\u00a7

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

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

impl Hash for NamePadding

Source\u00a7

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 \u00b7 Source\u00a7

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n H: Hasher,\n- Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source\u00a7

impl PartialEq for NamePadding

Source\u00a7

fn eq(&self, other: &NamePadding) -> 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+ Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source\u00a7

impl PartialEq for NamePadding

Source\u00a7

fn eq(&self, other: &NamePadding) -> 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 Copy for NamePadding

Source\u00a7

impl Eq for NamePadding

Source\u00a7

impl StructuralPartialEq for NamePadding

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/enum.OutputFormat.html", "source2": "./usr/share/doc/rust-doc/html/test/enum.OutputFormat.html", "unified_diff": "@@ -4,21 +4,21 @@\n Json,\n Junit,\n }
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

Format of the test results output

\n

Variants\u00a7

\u00a7

Pretty

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Verbose output

\n
\u00a7

Terse

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Quiet output

\n
\u00a7

Json

\ud83d\udd2cThis is a nightly-only experimental API. (test)

JSON output

\n
\u00a7

Junit

\ud83d\udd2cThis is a nightly-only experimental API. (test)

JUnit output

\n-

Trait Implementations\u00a7

Source\u00a7

impl Clone for OutputFormat

Source\u00a7

fn clone(&self) -> OutputFormat

Returns a duplicate 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 OutputFormat

Source\u00a7

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

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

impl Default for OutputFormat

Source\u00a7

fn default() -> OutputFormat

Returns the \u201cdefault value\u201d for a type. Read more
Source\u00a7

impl PartialEq for OutputFormat

Source\u00a7

fn eq(&self, other: &OutputFormat) -> 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 OutputFormat

Source\u00a7

fn clone(&self) -> OutputFormat

Returns a duplicate 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 OutputFormat

Source\u00a7

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

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

impl Default for OutputFormat

Source\u00a7

fn default() -> OutputFormat

Returns the \u201cdefault value\u201d for a type. Read more
Source\u00a7

impl PartialEq for OutputFormat

Source\u00a7

fn eq(&self, other: &OutputFormat) -> 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 Copy for OutputFormat

Source\u00a7

impl Eq for OutputFormat

Source\u00a7

impl StructuralPartialEq for OutputFormat

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/enum.RunIgnored.html", "source2": "./usr/share/doc/rust-doc/html/test/enum.RunIgnored.html", "unified_diff": "@@ -1,20 +1,20 @@\n RunIgnored in test - Rust

Enum RunIgnored

Source
pub enum RunIgnored {\n     Yes,\n     No,\n     Only,\n }
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

Whether ignored test should be run or not

\n

Variants\u00a7

\u00a7

Yes

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

No

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

Only

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Run only ignored tests

\n-

Trait Implementations\u00a7

Source\u00a7

impl Clone for RunIgnored

Source\u00a7

fn clone(&self) -> RunIgnored

Returns a duplicate 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 RunIgnored

Source\u00a7

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

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

impl PartialEq for RunIgnored

Source\u00a7

fn eq(&self, other: &RunIgnored) -> 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 RunIgnored

Source\u00a7

fn clone(&self) -> RunIgnored

Returns a duplicate 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 RunIgnored

Source\u00a7

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

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

impl PartialEq for RunIgnored

Source\u00a7

fn eq(&self, other: &RunIgnored) -> 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 Copy for RunIgnored

Source\u00a7

impl Eq for RunIgnored

Source\u00a7

impl StructuralPartialEq for RunIgnored

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/enum.ShouldPanic.html", "source2": "./usr/share/doc/rust-doc/html/test/enum.ShouldPanic.html", "unified_diff": "@@ -1,21 +1,21 @@\n ShouldPanic in test - Rust

Enum ShouldPanic

Source
pub enum ShouldPanic {\n     No,\n     Yes,\n-    YesWithMessage(&'static str),\n+    YesWithMessage(&'static str),\n }
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

Whether test is expected to panic or not

\n-

Variants\u00a7

\u00a7

No

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

Yes

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

YesWithMessage(&'static str)

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for ShouldPanic

Source\u00a7

fn clone(&self) -> ShouldPanic

Returns a duplicate 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 ShouldPanic

Source\u00a7

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

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

impl Hash for ShouldPanic

Source\u00a7

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 \u00b7 Source\u00a7

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n+

Variants\u00a7

\u00a7

No

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

Yes

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

YesWithMessage(&'static str)

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for ShouldPanic

Source\u00a7

fn clone(&self) -> ShouldPanic

Returns a duplicate 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 ShouldPanic

Source\u00a7

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

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

impl Hash for ShouldPanic

Source\u00a7

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 \u00b7 Source\u00a7

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n H: Hasher,\n- Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source\u00a7

impl PartialEq for ShouldPanic

Source\u00a7

fn eq(&self, other: &ShouldPanic) -> 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+ Self: Sized,
Feeds a slice of this type into the given Hasher. Read more
Source\u00a7

impl PartialEq for ShouldPanic

Source\u00a7

fn eq(&self, other: &ShouldPanic) -> 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 Copy for ShouldPanic

Source\u00a7

impl Eq for ShouldPanic

Source\u00a7

impl StructuralPartialEq for ShouldPanic

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/enum.TestFn.html", "source2": "./usr/share/doc/rust-doc/html/test/enum.TestFn.html", "unified_diff": "@@ -1,18 +1,18 @@\n TestFn in test - Rust

Enum TestFn

Source
pub enum TestFn {\n-    StaticTestFn(fn() -> Result<(), String>),\n-    StaticBenchFn(fn(&mut Bencher) -> Result<(), String>),\n-    StaticBenchAsTestFn(fn(&mut Bencher) -> Result<(), String>),\n-    DynTestFn(Box<dyn FnOnce() -> Result<(), String> + Send>),\n-    DynBenchFn(Box<dyn Fn(&mut Bencher) -> Result<(), String> + Send>),\n-    DynBenchAsTestFn(Box<dyn Fn(&mut Bencher) -> Result<(), String> + Send>),\n-}
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Variants\u00a7

\u00a7

StaticTestFn(fn() -> Result<(), String>)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

StaticBenchFn(fn(&mut Bencher) -> Result<(), String>)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

StaticBenchAsTestFn(fn(&mut Bencher) -> Result<(), String>)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

DynTestFn(Box<dyn FnOnce() -> Result<(), String> + Send>)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

DynBenchFn(Box<dyn Fn(&mut Bencher) -> Result<(), String> + Send>)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

DynBenchAsTestFn(Box<dyn Fn(&mut Bencher) -> Result<(), String> + Send>)

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl TestFn

Source

pub fn padding(&self) -> NamePadding

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Debug for TestFn

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+ StaticTestFn(fn() -> Result<(), String>),\n+ StaticBenchFn(fn(&mut Bencher) -> Result<(), String>),\n+ StaticBenchAsTestFn(fn(&mut Bencher) -> Result<(), String>),\n+ DynTestFn(Box<dyn FnOnce() -> Result<(), String> + Send>),\n+ DynBenchFn(Box<dyn Fn(&mut Bencher) -> Result<(), String> + Send>),\n+ DynBenchAsTestFn(Box<dyn Fn(&mut Bencher) -> Result<(), String> + Send>),\n+}
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Variants\u00a7

\u00a7

StaticTestFn(fn() -> Result<(), String>)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

StaticBenchFn(fn(&mut Bencher) -> Result<(), String>)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

StaticBenchAsTestFn(fn(&mut Bencher) -> Result<(), String>)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

DynTestFn(Box<dyn FnOnce() -> Result<(), String> + Send>)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

DynBenchFn(Box<dyn Fn(&mut Bencher) -> Result<(), String> + Send>)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

DynBenchAsTestFn(Box<dyn Fn(&mut Bencher) -> Result<(), String> + Send>)

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl TestFn

Source

pub fn padding(&self) -> NamePadding

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Debug for TestFn

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> 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, 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/test/enum.TestName.html", "source2": "./usr/share/doc/rust-doc/html/test/enum.TestName.html", "unified_diff": "@@ -1,21 +1,21 @@\n TestName in test - Rust

Enum TestName

Source
pub enum TestName {\n-    StaticTestName(&'static str),\n+    StaticTestName(&'static str),\n     DynTestName(String),\n-    AlignedTestName(Cow<'static, str>, NamePadding),\n-}
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Variants\u00a7

\u00a7

StaticTestName(&'static str)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

DynTestName(String)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

AlignedTestName(Cow<'static, str>, NamePadding)

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl TestName

Source

pub fn as_slice(&self) -> &str

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn padding(&self) -> NamePadding

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn with_padding(&self, padding: NamePadding) -> TestName

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for TestName

Source\u00a7

fn clone(&self) -> TestName

Returns a duplicate 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 TestName

Source\u00a7

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

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

impl Display for TestName

Source\u00a7

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

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

impl Hash for TestName

Source\u00a7

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 \u00b7 Source\u00a7

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n+ AlignedTestName(Cow<'static, str>, NamePadding),\n+}
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Variants\u00a7

\u00a7

StaticTestName(&'static str)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

DynTestName(String)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

AlignedTestName(Cow<'static, str>, NamePadding)

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl TestName

Source

pub fn as_slice(&self) -> &str

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn padding(&self) -> NamePadding

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn with_padding(&self, padding: NamePadding) -> TestName

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for TestName

Source\u00a7

fn clone(&self) -> TestName

Returns a duplicate 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 TestName

Source\u00a7

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

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

impl Display for TestName

Source\u00a7

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

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

impl Hash for TestName

Source\u00a7

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 \u00b7 Source\u00a7

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n H: Hasher,\n- Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source\u00a7

impl PartialEq for TestName

Source\u00a7

fn eq(&self, other: &TestName) -> 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+ Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source\u00a7

impl PartialEq for TestName

Source\u00a7

fn eq(&self, other: &TestName) -> 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 TestName

Source\u00a7

impl StructuralPartialEq for TestName

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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

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/test/enum.TestType.html", "source2": "./usr/share/doc/rust-doc/html/test/enum.TestType.html", "unified_diff": "@@ -6,23 +6,23 @@\n }
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

Type of the test according to the Rust book\n conventions.

\n

Variants\u00a7

\u00a7

UnitTest

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Unit-tests are expected to be in the src folder of the crate.

\n
\u00a7

IntegrationTest

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Integration-style tests are expected to be in the tests folder of the crate.

\n
\u00a7

DocTest

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Doctests are created by the librustdoc manually, so it\u2019s a different type of test.

\n
\u00a7

Unknown

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Tests for the sources that don\u2019t follow the project layout convention\n (e.g. tests in raw main.rs compiled by calling rustc --test directly).

\n-

Trait Implementations\u00a7

Source\u00a7

impl Clone for TestType

Source\u00a7

fn clone(&self) -> TestType

Returns a duplicate 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 TestType

Source\u00a7

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

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

impl Hash for TestType

Source\u00a7

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 \u00b7 Source\u00a7

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n+

Trait Implementations\u00a7

Source\u00a7

impl Clone for TestType

Source\u00a7

fn clone(&self) -> TestType

Returns a duplicate 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 TestType

Source\u00a7

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

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

impl Hash for TestType

Source\u00a7

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 \u00b7 Source\u00a7

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n H: Hasher,\n- Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source\u00a7

impl PartialEq for TestType

Source\u00a7

fn eq(&self, other: &TestType) -> 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+ Self: Sized,
Feeds a slice of this type into the given Hasher. Read more
Source\u00a7

impl PartialEq for TestType

Source\u00a7

fn eq(&self, other: &TestType) -> 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 Copy for TestType

Source\u00a7

impl Eq for TestType

Source\u00a7

impl StructuralPartialEq for TestType

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/fn.assert_test_result.html", "source2": "./usr/share/doc/rust-doc/html/test/fn.assert_test_result.html", "unified_diff": "@@ -1,4 +1,4 @@\n-assert_test_result in test - Rust

Function assert_test_result

Source
pub fn assert_test_result<T: Termination>(result: T) -> Result<(), String>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

Invoked when unit tests terminate. Returns Result::Err if the test is\n+assert_test_result in test - Rust

Function assert_test_result

Source
pub fn assert_test_result<T: Termination>(result: T) -> Result<(), String>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

Invoked when unit tests terminate. Returns Result::Err if the test is\n considered a failure. By default, invokes report() and checks for a 0\n result.

\n
\n"}, {"source1": "./usr/share/doc/rust-doc/html/test/fn.run_test.html", "source2": "./usr/share/doc/rust-doc/html/test/fn.run_test.html", "unified_diff": "@@ -1,8 +1,8 @@\n run_test in test - Rust

Function run_test

Source
pub fn run_test(\n     opts: &TestOpts,\n-    force_ignore: bool,\n+    force_ignore: bool,\n     id: TestId,\n     test: TestDescAndFn,\n     strategy: RunStrategy,\n-    monitor_ch: Sender<CompletedTest>,\n-) -> Option<JoinHandle<()>>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\n+ monitor_ch: Sender<CompletedTest>,\n+) -> Option<JoinHandle<()>>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\n"}, {"source1": "./usr/share/doc/rust-doc/html/test/fn.run_tests.html", "source2": "./usr/share/doc/rust-doc/html/test/fn.run_tests.html", "unified_diff": "@@ -1,6 +1,6 @@\n run_tests in test - Rust

Function run_tests

Source
pub fn run_tests<F>(\n     opts: &TestOpts,\n     tests: Vec<TestDescAndFn>,\n     notify_about_test_event: F,\n-) -> Result<()>
where\n- F: FnMut(TestEvent) -> Result<()>,
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\n+) -> Result<()>
where\n+ F: FnMut(TestEvent) -> Result<()>,
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\n"}, {"source1": "./usr/share/doc/rust-doc/html/test/fn.run_tests_console.html", "source2": "./usr/share/doc/rust-doc/html/test/fn.run_tests_console.html", "unified_diff": "@@ -1,6 +1,6 @@\n run_tests_console in test - Rust

Function run_tests_console

Source
pub fn run_tests_console(\n     opts: &TestOpts,\n     tests: Vec<TestDescAndFn>,\n-) -> Result<bool>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

A simple console test runner.\n+) -> Result<bool>

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

A simple console test runner.\n Runs provided tests reporting process and results to the stdout.

\n
\n"}, {"source1": "./usr/share/doc/rust-doc/html/test/stats/fn.winsorize.html", "source2": "./usr/share/doc/rust-doc/html/test/stats/fn.winsorize.html", "unified_diff": "@@ -1,7 +1,7 @@\n-winsorize in test::stats - Rust

Function winsorize

Source
pub fn winsorize(samples: &mut [f64], pct: f64)
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

Winsorize a set of samples, replacing values above the 100-pct percentile\n+winsorize in test::stats - Rust

Function winsorize

Source
pub fn winsorize(samples: &mut [f64], pct: f64)
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

Winsorize a set of samples, replacing values above the 100-pct percentile\n and below the pct percentile with those percentiles themselves. This is a\n way of minimizing the effect of outliers, at the cost of biasing the sample.\n It differs from trimming in that it does not change the number of samples,\n just changes the values of those that are outliers.

\n

See: https://en.wikipedia.org/wiki/Winsorising

\n
\n"}, {"source1": "./usr/share/doc/rust-doc/html/test/stats/struct.Summary.html", "source2": "./usr/share/doc/rust-doc/html/test/stats/struct.Summary.html", "unified_diff": "@@ -1,29 +1,29 @@\n Summary in test::stats - Rust

Struct Summary

Source
pub struct Summary {\n-    pub sum: f64,\n-    pub min: f64,\n-    pub max: f64,\n-    pub mean: f64,\n-    pub median: f64,\n-    pub var: f64,\n-    pub std_dev: f64,\n-    pub std_dev_pct: f64,\n-    pub median_abs_dev: f64,\n-    pub median_abs_dev_pct: f64,\n-    pub quartiles: (f64, f64, f64),\n-    pub iqr: f64,\n+    pub sum: f64,\n+    pub min: f64,\n+    pub max: f64,\n+    pub mean: f64,\n+    pub median: f64,\n+    pub var: f64,\n+    pub std_dev: f64,\n+    pub std_dev_pct: f64,\n+    pub median_abs_dev: f64,\n+    pub median_abs_dev_pct: f64,\n+    pub quartiles: (f64, f64, f64),\n+    pub iqr: f64,\n }
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

Extracted collection of all the summary statistics of a sample set.

\n-

Fields\u00a7

\u00a7sum: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7min: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7max: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7mean: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7median: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7var: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7std_dev: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7std_dev_pct: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7median_abs_dev: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7median_abs_dev_pct: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7quartiles: (f64, f64, f64)
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7iqr: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl Summary

Source

pub fn new(samples: &[f64]) -> Summary

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Constructs a new summary of a sample set.

\n-

Trait Implementations\u00a7

Source\u00a7

impl Clone for Summary

Source\u00a7

fn clone(&self) -> Summary

Returns a duplicate 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 Summary

Source\u00a7

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

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

impl PartialEq for Summary

Source\u00a7

fn eq(&self, other: &Summary) -> 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+

Fields\u00a7

\u00a7sum: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7min: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7max: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7mean: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7median: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7var: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7std_dev: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7std_dev_pct: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7median_abs_dev: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7median_abs_dev_pct: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7quartiles: (f64, f64, f64)
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7iqr: f64
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl Summary

Source

pub fn new(samples: &[f64]) -> Summary

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Constructs a new summary of a sample set.

\n+

Trait Implementations\u00a7

Source\u00a7

impl Clone for Summary

Source\u00a7

fn clone(&self) -> Summary

Returns a duplicate 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 Summary

Source\u00a7

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

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

impl PartialEq for Summary

Source\u00a7

fn eq(&self, other: &Summary) -> 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 Copy for Summary

Source\u00a7

impl StructuralPartialEq for Summary

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/stats/trait.Stats.html", "source2": "./usr/share/doc/rust-doc/html/test/stats/trait.Stats.html", "unified_diff": "@@ -1,62 +1,62 @@\n Stats in test::stats - Rust

Trait Stats

Source
pub trait Stats {\n 
Show 13 methods // Required methods\n- fn sum(&self) -> f64;\n- fn min(&self) -> f64;\n- fn max(&self) -> f64;\n- fn mean(&self) -> f64;\n- fn median(&self) -> f64;\n- fn var(&self) -> f64;\n- fn std_dev(&self) -> f64;\n- fn std_dev_pct(&self) -> f64;\n- fn median_abs_dev(&self) -> f64;\n- fn median_abs_dev_pct(&self) -> f64;\n- fn percentile(&self, pct: f64) -> f64;\n- fn quartiles(&self) -> (f64, f64, f64);\n- fn iqr(&self) -> f64;\n+ fn sum(&self) -> f64;\n+ fn min(&self) -> f64;\n+ fn max(&self) -> f64;\n+ fn mean(&self) -> f64;\n+ fn median(&self) -> f64;\n+ fn var(&self) -> f64;\n+ fn std_dev(&self) -> f64;\n+ fn std_dev_pct(&self) -> f64;\n+ fn median_abs_dev(&self) -> f64;\n+ fn median_abs_dev_pct(&self) -> f64;\n+ fn percentile(&self, pct: f64) -> f64;\n+ fn quartiles(&self) -> (f64, f64, f64);\n+ fn iqr(&self) -> f64;\n
}
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

Trait that provides simple descriptive statistics on a univariate set of numeric samples.

\n-

Required Methods\u00a7

Source

fn sum(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Sum of the samples.

\n+

Required Methods\u00a7

Source

fn sum(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Sum of the samples.

\n

Note: this method sacrifices performance at the altar of accuracy\n Depends on IEEE 754 arithmetic guarantees. See proof of correctness at:\n \u201cAdaptive Precision Floating-Point Arithmetic and Fast Robust Geometric\n Predicates\u201d

\n-
Source

fn min(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Minimum value of the samples.

\n-
Source

fn max(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Maximum value of the samples.

\n-
Source

fn mean(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Arithmetic mean (average) of the samples: sum divided by sample-count.

\n+
Source

fn min(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Minimum value of the samples.

\n+
Source

fn max(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Maximum value of the samples.

\n+
Source

fn mean(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Arithmetic mean (average) of the samples: sum divided by sample-count.

\n

See: https://en.wikipedia.org/wiki/Arithmetic_mean

\n-
Source

fn median(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Median of the samples: value separating the lower half of the samples from the higher half.\n+

Source

fn median(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Median of the samples: value separating the lower half of the samples from the higher half.\n Equal to self.percentile(50.0).

\n

See: https://en.wikipedia.org/wiki/Median

\n-
Source

fn var(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Variance of the samples: bias-corrected mean of the squares of the differences of each\n+

Source

fn var(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Variance of the samples: bias-corrected mean of the squares of the differences of each\n sample from the sample mean. Note that this calculates the sample variance rather than the\n population variance, which is assumed to be unknown. It therefore corrects the (n-1)/n\n bias that would appear if we calculated a population variance, by dividing by (n-1) rather\n than n.

\n

See: https://en.wikipedia.org/wiki/Variance

\n-
Source

fn std_dev(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Standard deviation: the square root of the sample variance.

\n+
Source

fn std_dev(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Standard deviation: the square root of the sample variance.

\n

Note: this is not a robust statistic for non-normal distributions. Prefer the\n median_abs_dev for unknown distributions.

\n

See: https://en.wikipedia.org/wiki/Standard_deviation

\n-
Source

fn std_dev_pct(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Standard deviation as a percent of the mean value. See std_dev and mean.

\n+
Source

fn std_dev_pct(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Standard deviation as a percent of the mean value. See std_dev and mean.

\n

Note: this is not a robust statistic for non-normal distributions. Prefer the\n median_abs_dev_pct for unknown distributions.

\n-
Source

fn median_abs_dev(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Scaled median of the absolute deviations of each sample from the sample median. This is a\n+

Source

fn median_abs_dev(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Scaled median of the absolute deviations of each sample from the sample median. This is a\n robust (distribution-agnostic) estimator of sample variability. Use this in preference to\n std_dev if you cannot assume your sample is normally distributed. Note that this is scaled\n by the constant 1.4826 to allow its use as a consistent estimator for the standard\n deviation.

\n

See: https://en.wikipedia.org/wiki/Median_absolute_deviation

\n-
Source

fn median_abs_dev_pct(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Median absolute deviation as a percent of the median. See median_abs_dev and median.

\n-
Source

fn percentile(&self, pct: f64) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Percentile: the value below which pct percent of the values in self fall. For example,\n+

Source

fn median_abs_dev_pct(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Median absolute deviation as a percent of the median. See median_abs_dev and median.

\n+
Source

fn percentile(&self, pct: f64) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Percentile: the value below which pct percent of the values in self fall. For example,\n percentile(95.0) will return the value v such that 95% of the samples s in self\n satisfy s <= v.

\n

Calculated by linear interpolation between closest ranks.

\n

See: https://en.wikipedia.org/wiki/Percentile

\n-
Source

fn quartiles(&self) -> (f64, f64, f64)

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Quartiles of the sample: three values that divide the sample into four equal groups, each\n+

Source

fn quartiles(&self) -> (f64, f64, f64)

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Quartiles of the sample: three values that divide the sample into four equal groups, each\n with 1/4 of the data. The middle value is the median. See median and percentile. This\n function may calculate the 3 quartiles more efficiently than 3 calls to percentile, but\n is otherwise equivalent.

\n

See also: https://en.wikipedia.org/wiki/Quartile

\n-
Source

fn iqr(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Inter-quartile range: the difference between the 25th percentile (1st quartile) and the 75th\n+

Source

fn iqr(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Inter-quartile range: the difference between the 25th percentile (1st quartile) and the 75th\n percentile (3rd quartile). See quartiles.

\n

See also: https://en.wikipedia.org/wiki/Interquartile_range

\n-

Implementations on Foreign Types\u00a7

Source\u00a7

impl Stats for [f64]

Source\u00a7

fn sum(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn min(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn max(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn mean(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn median(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn var(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn std_dev(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn std_dev_pct(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn median_abs_dev(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn median_abs_dev_pct(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn percentile(&self, pct: f64) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn quartiles(&self) -> (f64, f64, f64)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn iqr(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementors\u00a7

\n+

Implementations on Foreign Types\u00a7

Source\u00a7

impl Stats for [f64]

Source\u00a7

fn sum(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn min(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn max(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn mean(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn median(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn var(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn std_dev(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn std_dev_pct(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn median_abs_dev(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn median_abs_dev_pct(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn percentile(&self, pct: f64) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn quartiles(&self) -> (f64, f64, f64)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source\u00a7

fn iqr(&self) -> f64

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementors\u00a7

\n"}, {"source1": "./usr/share/doc/rust-doc/html/test/struct.Options.html", "source2": "./usr/share/doc/rust-doc/html/test/struct.Options.html", "unified_diff": "@@ -1,18 +1,18 @@\n Options in test - Rust

Struct Options

Source
pub struct Options {\n-    pub display_output: bool,\n-    pub panic_abort: bool,\n+    pub display_output: bool,\n+    pub panic_abort: bool,\n }
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

Options for the test run defined by the caller (instead of CLI arguments).\n In case we want to add other options as well, just add them in this struct.

\n-

Fields\u00a7

\u00a7display_output: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7panic_abort: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl Options

Source

pub fn new() -> Options

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn display_output(self, display_output: bool) -> Options

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn panic_abort(self, panic_abort: bool) -> Options

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for Options

Source\u00a7

fn clone(&self) -> Options

Returns a duplicate 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 Options

Source\u00a7

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

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

impl Copy for Options

Auto Trait Implementations\u00a7

Blanket Implementations\u00a7

Source\u00a7

impl<T> Any for T
where\n+

Fields\u00a7

\u00a7display_output: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7panic_abort: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl Options

Source

pub fn new() -> Options

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn display_output(self, display_output: bool) -> Options

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn panic_abort(self, panic_abort: bool) -> Options

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for Options

Source\u00a7

fn clone(&self) -> Options

Returns a duplicate 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 Options

Source\u00a7

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

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

impl Copy for Options

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/struct.TestDesc.html", "source2": "./usr/share/doc/rust-doc/html/test/struct.TestDesc.html", "unified_diff": "@@ -1,28 +1,28 @@\n TestDesc in test - Rust

Struct TestDesc

Source
pub struct TestDesc {\n     pub name: TestName,\n-    pub ignore: bool,\n-    pub ignore_message: Option<&'static str>,\n-    pub source_file: &'static str,\n-    pub start_line: usize,\n-    pub start_col: usize,\n-    pub end_line: usize,\n-    pub end_col: usize,\n+    pub ignore: bool,\n+    pub ignore_message: Option<&'static str>,\n+    pub source_file: &'static str,\n+    pub start_line: usize,\n+    pub start_col: usize,\n+    pub end_line: usize,\n+    pub end_col: usize,\n     pub should_panic: ShouldPanic,\n-    pub compile_fail: bool,\n-    pub no_run: bool,\n+    pub compile_fail: bool,\n+    pub no_run: bool,\n     pub test_type: TestType,\n-}
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Fields\u00a7

\u00a7name: TestName
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7ignore: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7ignore_message: Option<&'static str>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7source_file: &'static str
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7start_line: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7start_col: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7end_line: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7end_col: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7should_panic: ShouldPanic
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7compile_fail: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7no_run: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7test_type: TestType
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl TestDesc

Source

pub fn padded_name(&self, column_count: usize, align: NamePadding) -> String

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn test_mode(&self) -> Option<&'static str>

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Returns None for ignored test or tests that are just run, otherwise returns a description of the type of test.\n+}

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Fields\u00a7

\u00a7name: TestName
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7ignore: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7ignore_message: Option<&'static str>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7source_file: &'static str
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7start_line: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7start_col: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7end_line: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7end_col: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7should_panic: ShouldPanic
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7compile_fail: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7no_run: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7test_type: TestType
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl TestDesc

Source

pub fn padded_name(&self, column_count: usize, align: NamePadding) -> String

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn test_mode(&self) -> Option<&'static str>

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Returns None for ignored test or tests that are just run, otherwise returns a description of the type of test.\n Descriptions include \u201cshould panic\u201d, \u201ccompile fail\u201d and \u201ccompile\u201d.

\n

Trait Implementations\u00a7

Source\u00a7

impl Clone for TestDesc

Source\u00a7

fn clone(&self) -> TestDesc

Returns a duplicate 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 TestDesc

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/struct.TestDescAndFn.html", "source2": "./usr/share/doc/rust-doc/html/test/struct.TestDescAndFn.html", "unified_diff": "@@ -1,22 +1,22 @@\n TestDescAndFn in test - Rust

Struct TestDescAndFn

Source
pub struct TestDescAndFn {\n     pub desc: TestDesc,\n     pub testfn: TestFn,\n }
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Fields\u00a7

\u00a7desc: TestDesc
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7testfn: TestFn
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl TestDescAndFn

Source

pub const fn new_doctest(\n- test_name: &'static str,\n- ignore: bool,\n- source_file: &'static str,\n- start_line: usize,\n- no_run: bool,\n- should_panic: bool,\n+ test_name: &'static str,\n+ ignore: bool,\n+ source_file: &'static str,\n+ start_line: usize,\n+ no_run: bool,\n+ should_panic: bool,\n testfn: TestFn,\n ) -> Self

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Debug for TestDescAndFn

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> 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, 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/test/struct.TestId.html", "source2": "./usr/share/doc/rust-doc/html/test/struct.TestId.html", "unified_diff": "@@ -1,16 +1,16 @@\n-TestId in test - Rust

Struct TestId

Source
pub struct TestId(pub usize);
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Tuple Fields\u00a7

\u00a70: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for TestId

Source\u00a7

fn clone(&self) -> TestId

Returns a duplicate 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 TestId

Source\u00a7

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

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

impl Hash for TestId

Source\u00a7

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 \u00b7 Source\u00a7

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n+TestId in test - Rust

Struct TestId

Source
pub struct TestId(pub usize);
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Tuple Fields\u00a7

\u00a70: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for TestId

Source\u00a7

fn clone(&self) -> TestId

Returns a duplicate 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 TestId

Source\u00a7

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

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

impl Hash for TestId

Source\u00a7

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 \u00b7 Source\u00a7

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n H: Hasher,\n- Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source\u00a7

impl PartialEq for TestId

Source\u00a7

fn eq(&self, other: &TestId) -> 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+ Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source\u00a7

impl PartialEq for TestId

Source\u00a7

fn eq(&self, other: &TestId) -> 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 Copy for TestId

Source\u00a7

impl Eq for TestId

Source\u00a7

impl StructuralPartialEq for TestId

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/struct.TestOpts.html", "source2": "./usr/share/doc/rust-doc/html/test/struct.TestOpts.html", "unified_diff": "@@ -1,34 +1,34 @@\n TestOpts in test - Rust

Struct TestOpts

Source
pub struct TestOpts {
Show 19 fields\n- pub list: bool,\n+ pub list: bool,\n pub filters: Vec<String>,\n- pub filter_exact: bool,\n- pub force_run_in_process: bool,\n- pub exclude_should_panic: bool,\n+ pub filter_exact: bool,\n+ pub force_run_in_process: bool,\n+ pub exclude_should_panic: bool,\n pub run_ignored: RunIgnored,\n- pub run_tests: bool,\n- pub bench_benchmarks: bool,\n- pub logfile: Option<PathBuf>,\n- pub nocapture: bool,\n+ pub run_tests: bool,\n+ pub bench_benchmarks: bool,\n+ pub logfile: Option<PathBuf>,\n+ pub nocapture: bool,\n pub color: ColorConfig,\n pub format: OutputFormat,\n- pub shuffle: bool,\n- pub shuffle_seed: Option<u64>,\n- pub test_threads: Option<usize>,\n+ pub shuffle: bool,\n+ pub shuffle_seed: Option<u64>,\n+ pub test_threads: Option<usize>,\n pub skip: Vec<String>,\n pub time_options: Option<TestTimeOptions>,\n- pub fail_fast: bool,\n+ pub fail_fast: bool,\n pub options: Options,\n-
}
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Fields\u00a7

\u00a7list: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7filters: Vec<String>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7filter_exact: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7force_run_in_process: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7exclude_should_panic: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7run_ignored: RunIgnored
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7run_tests: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7bench_benchmarks: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7logfile: Option<PathBuf>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7nocapture: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7color: ColorConfig
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7format: OutputFormat
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7shuffle: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7shuffle_seed: Option<u64>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7test_threads: Option<usize>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7skip: Vec<String>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7time_options: Option<TestTimeOptions>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7fail_fast: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Stop at first failing test.\n+}

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Fields\u00a7

\u00a7list: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7filters: Vec<String>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7filter_exact: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7force_run_in_process: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7exclude_should_panic: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7run_ignored: RunIgnored
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7run_tests: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7bench_benchmarks: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7logfile: Option<PathBuf>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7nocapture: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7color: ColorConfig
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7format: OutputFormat
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7shuffle: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7shuffle_seed: Option<u64>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7test_threads: Option<usize>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7skip: Vec<String>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7time_options: Option<TestTimeOptions>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7fail_fast: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Stop at first failing test.\n May run a few more tests due to threading, but will\n abort as soon as possible.

\n-
\u00a7options: Options
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl TestOpts

Source

pub fn use_color(&self) -> bool

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Debug for TestOpts

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+
\u00a7options: Options
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl TestOpts

Source

pub fn use_color(&self) -> bool

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Debug for TestOpts

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> 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, 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/test/test/enum.RunIgnored.html", "source2": "./usr/share/doc/rust-doc/html/test/test/enum.RunIgnored.html", "unified_diff": "@@ -1,20 +1,20 @@\n RunIgnored in test::test - Rust

Enum RunIgnored

Source
pub enum RunIgnored {\n     Yes,\n     No,\n     Only,\n }
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

Whether ignored test should be run or not

\n

Variants\u00a7

\u00a7

Yes

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

No

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

Only

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Run only ignored tests

\n-

Trait Implementations\u00a7

Source\u00a7

impl Clone for RunIgnored

Source\u00a7

fn clone(&self) -> RunIgnored

Returns a duplicate 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 RunIgnored

Source\u00a7

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

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

impl PartialEq for RunIgnored

Source\u00a7

fn eq(&self, other: &RunIgnored) -> 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 RunIgnored

Source\u00a7

fn clone(&self) -> RunIgnored

Returns a duplicate 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 RunIgnored

Source\u00a7

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

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

impl PartialEq for RunIgnored

Source\u00a7

fn eq(&self, other: &RunIgnored) -> 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 Copy for RunIgnored

Source\u00a7

impl Eq for RunIgnored

Source\u00a7

impl StructuralPartialEq for RunIgnored

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/test/enum.RunStrategy.html", "source2": "./usr/share/doc/rust-doc/html/test/test/enum.RunStrategy.html", "unified_diff": "@@ -4,18 +4,18 @@\n }
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Variants\u00a7

\u00a7

InProcess

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Runs the test in the current process, and sends the result back over the\n supplied channel.

\n
\u00a7

SpawnPrimary

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Spawns a subprocess to run the test, and sends the result back over the\n supplied channel. Requires argv[0] to exist and point to the binary\n that\u2019s currently running.

\n

Trait Implementations\u00a7

Source\u00a7

impl Clone for RunStrategy

Source\u00a7

fn clone(&self) -> RunStrategy

Returns a duplicate 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 Copy for RunStrategy

Auto Trait Implementations\u00a7

\u00a7

impl Freeze for RunStrategy

\u00a7

impl RefUnwindSafe for RunStrategy

\u00a7

impl Send for RunStrategy

\u00a7

impl Sync for RunStrategy

\u00a7

impl Unpin for RunStrategy

\u00a7

impl UnwindSafe for RunStrategy

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/test/enum.ShouldPanic.html", "source2": "./usr/share/doc/rust-doc/html/test/test/enum.ShouldPanic.html", "unified_diff": "@@ -1,21 +1,21 @@\n ShouldPanic in test::test - Rust

Enum ShouldPanic

Source
pub enum ShouldPanic {\n     No,\n     Yes,\n-    YesWithMessage(&'static str),\n+    YesWithMessage(&'static str),\n }
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

Whether test is expected to panic or not

\n-

Variants\u00a7

\u00a7

No

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

Yes

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

YesWithMessage(&'static str)

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for ShouldPanic

Source\u00a7

fn clone(&self) -> ShouldPanic

Returns a duplicate 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 ShouldPanic

Source\u00a7

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

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

impl Hash for ShouldPanic

Source\u00a7

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 \u00b7 Source\u00a7

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n+

Variants\u00a7

\u00a7

No

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

Yes

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

YesWithMessage(&'static str)

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for ShouldPanic

Source\u00a7

fn clone(&self) -> ShouldPanic

Returns a duplicate 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 ShouldPanic

Source\u00a7

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

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

impl Hash for ShouldPanic

Source\u00a7

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 \u00b7 Source\u00a7

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n H: Hasher,\n- Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source\u00a7

impl PartialEq for ShouldPanic

Source\u00a7

fn eq(&self, other: &ShouldPanic) -> 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+ Self: Sized,
Feeds a slice of this type into the given Hasher. Read more
Source\u00a7

impl PartialEq for ShouldPanic

Source\u00a7

fn eq(&self, other: &ShouldPanic) -> 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 Copy for ShouldPanic

Source\u00a7

impl Eq for ShouldPanic

Source\u00a7

impl StructuralPartialEq for ShouldPanic

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/test/enum.TestName.html", "source2": "./usr/share/doc/rust-doc/html/test/test/enum.TestName.html", "unified_diff": "@@ -1,21 +1,21 @@\n TestName in test::test - Rust

Enum TestName

Source
pub enum TestName {\n-    StaticTestName(&'static str),\n+    StaticTestName(&'static str),\n     DynTestName(String),\n-    AlignedTestName(Cow<'static, str>, NamePadding),\n-}
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Variants\u00a7

\u00a7

StaticTestName(&'static str)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

DynTestName(String)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

AlignedTestName(Cow<'static, str>, NamePadding)

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl TestName

Source

pub fn as_slice(&self) -> &str

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn padding(&self) -> NamePadding

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn with_padding(&self, padding: NamePadding) -> TestName

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for TestName

Source\u00a7

fn clone(&self) -> TestName

Returns a duplicate 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 TestName

Source\u00a7

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

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

impl Display for TestName

Source\u00a7

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

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

impl Hash for TestName

Source\u00a7

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 \u00b7 Source\u00a7

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n+ AlignedTestName(Cow<'static, str>, NamePadding),\n+}
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Variants\u00a7

\u00a7

StaticTestName(&'static str)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

DynTestName(String)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

AlignedTestName(Cow<'static, str>, NamePadding)

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl TestName

Source

pub fn as_slice(&self) -> &str

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn padding(&self) -> NamePadding

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn with_padding(&self, padding: NamePadding) -> TestName

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for TestName

Source\u00a7

fn clone(&self) -> TestName

Returns a duplicate 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 TestName

Source\u00a7

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

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

impl Display for TestName

Source\u00a7

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

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

impl Hash for TestName

Source\u00a7

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 \u00b7 Source\u00a7

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n H: Hasher,\n- Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source\u00a7

impl PartialEq for TestName

Source\u00a7

fn eq(&self, other: &TestName) -> 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+ Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source\u00a7

impl PartialEq for TestName

Source\u00a7

fn eq(&self, other: &TestName) -> 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 TestName

Source\u00a7

impl StructuralPartialEq for TestName

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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

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/test/test/enum.TestResult.html", "source2": "./usr/share/doc/rust-doc/html/test/test/enum.TestResult.html", "unified_diff": "@@ -1,21 +1,21 @@\n TestResult in test::test - Rust

Enum TestResult

Source
pub enum TestResult {\n     TrOk,\n     TrFailed,\n     TrFailedMsg(String),\n     TrIgnored,\n     TrBench(BenchSamples),\n     TrTimedFail,\n-}
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Variants\u00a7

\u00a7

TrOk

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

TrFailed

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

TrFailedMsg(String)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

TrIgnored

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

TrBench(BenchSamples)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

TrTimedFail

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for TestResult

Source\u00a7

fn clone(&self) -> TestResult

Returns a duplicate 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 TestResult

Source\u00a7

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

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

impl PartialEq for TestResult

Source\u00a7

fn eq(&self, other: &TestResult) -> 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+}
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Variants\u00a7

\u00a7

TrOk

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

TrFailed

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

TrFailedMsg(String)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

TrIgnored

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

TrBench(BenchSamples)

\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7

TrTimedFail

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for TestResult

Source\u00a7

fn clone(&self) -> TestResult

Returns a duplicate 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 TestResult

Source\u00a7

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

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

impl PartialEq for TestResult

Source\u00a7

fn eq(&self, other: &TestResult) -> 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 StructuralPartialEq for TestResult

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/test/enum.TestType.html", "source2": "./usr/share/doc/rust-doc/html/test/test/enum.TestType.html", "unified_diff": "@@ -6,23 +6,23 @@\n }
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

Type of the test according to the Rust book\n conventions.

\n

Variants\u00a7

\u00a7

UnitTest

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Unit-tests are expected to be in the src folder of the crate.

\n
\u00a7

IntegrationTest

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Integration-style tests are expected to be in the tests folder of the crate.

\n
\u00a7

DocTest

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Doctests are created by the librustdoc manually, so it\u2019s a different type of test.

\n
\u00a7

Unknown

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Tests for the sources that don\u2019t follow the project layout convention\n (e.g. tests in raw main.rs compiled by calling rustc --test directly).

\n-

Trait Implementations\u00a7

Source\u00a7

impl Clone for TestType

Source\u00a7

fn clone(&self) -> TestType

Returns a duplicate 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 TestType

Source\u00a7

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

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

impl Hash for TestType

Source\u00a7

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 \u00b7 Source\u00a7

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n+

Trait Implementations\u00a7

Source\u00a7

impl Clone for TestType

Source\u00a7

fn clone(&self) -> TestType

Returns a duplicate 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 TestType

Source\u00a7

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

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

impl Hash for TestType

Source\u00a7

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 \u00b7 Source\u00a7

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n H: Hasher,\n- Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source\u00a7

impl PartialEq for TestType

Source\u00a7

fn eq(&self, other: &TestType) -> 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+ Self: Sized,
Feeds a slice of this type into the given Hasher. Read more
Source\u00a7

impl PartialEq for TestType

Source\u00a7

fn eq(&self, other: &TestType) -> 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 Copy for TestType

Source\u00a7

impl Eq for TestType

Source\u00a7

impl StructuralPartialEq for TestType

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/test/struct.Metric.html", "source2": "./usr/share/doc/rust-doc/html/test/test/struct.Metric.html", "unified_diff": "@@ -1,14 +1,14 @@\n-Metric in test::test - Rust

Struct Metric

Source
pub struct Metric { /* private fields */ }
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl Metric

Source

pub fn new(value: f64, noise: f64) -> Metric

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for Metric

Source\u00a7

fn clone(&self) -> Metric

Returns a duplicate 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 Metric

Source\u00a7

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

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

impl PartialEq for Metric

Source\u00a7

fn eq(&self, other: &Metric) -> 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+Metric in test::test - Rust

Struct Metric

Source
pub struct Metric { /* private fields */ }
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl Metric

Source

pub fn new(value: f64, noise: f64) -> Metric

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for Metric

Source\u00a7

fn clone(&self) -> Metric

Returns a duplicate 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 Metric

Source\u00a7

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

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

impl PartialEq for Metric

Source\u00a7

fn eq(&self, other: &Metric) -> 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 Copy for Metric

Source\u00a7

impl StructuralPartialEq for Metric

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/test/struct.MetricMap.html", "source2": "./usr/share/doc/rust-doc/html/test/test/struct.MetricMap.html", "unified_diff": "@@ -1,25 +1,25 @@\n-MetricMap in test::test - Rust

Struct MetricMap

Source
pub struct MetricMap(/* private fields */);
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl MetricMap

Source

pub fn new() -> MetricMap

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn insert_metric(&mut self, name: &str, value: f64, noise: f64)

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Insert a named value (+/- noise) metric into the map. The value\n+MetricMap in test::test - Rust

Struct MetricMap

Source
pub struct MetricMap(/* private fields */);
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl MetricMap

Source

pub fn new() -> MetricMap

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn insert_metric(&mut self, name: &str, value: f64, noise: f64)

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Insert a named value (+/- noise) metric into the map. The value\n must be non-negative. The noise indicates the uncertainty of the\n metric, which doubles as the \u201cnoise range\u201d of acceptable\n pairwise-regressions on this named value, when comparing from one\n metric to the next using compare_to_old.

\n

If noise is positive, then it means this metric is of a value\n you want to see grow smaller, so a change larger than noise in the\n positive direction represents a regression.

\n

If noise is negative, then it means this metric is of a value\n you want to see grow larger, so a change larger than noise in the\n negative direction represents a regression.

\n-
Source

pub fn fmt_metrics(&self) -> String

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for MetricMap

Source\u00a7

fn clone(&self) -> MetricMap

Returns a duplicate 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 PartialEq for MetricMap

Source\u00a7

fn eq(&self, other: &MetricMap) -> 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

pub fn fmt_metrics(&self) -> String

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for MetricMap

Source\u00a7

fn clone(&self) -> MetricMap

Returns a duplicate 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 PartialEq for MetricMap

Source\u00a7

fn eq(&self, other: &MetricMap) -> 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 StructuralPartialEq for MetricMap

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/test/struct.Options.html", "source2": "./usr/share/doc/rust-doc/html/test/test/struct.Options.html", "unified_diff": "@@ -1,18 +1,18 @@\n Options in test::test - Rust

Struct Options

Source
pub struct Options {\n-    pub display_output: bool,\n-    pub panic_abort: bool,\n+    pub display_output: bool,\n+    pub panic_abort: bool,\n }
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

Options for the test run defined by the caller (instead of CLI arguments).\n In case we want to add other options as well, just add them in this struct.

\n-

Fields\u00a7

\u00a7display_output: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7panic_abort: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl Options

Source

pub fn new() -> Options

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn display_output(self, display_output: bool) -> Options

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn panic_abort(self, panic_abort: bool) -> Options

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for Options

Source\u00a7

fn clone(&self) -> Options

Returns a duplicate 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 Options

Source\u00a7

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

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

impl Copy for Options

Auto Trait Implementations\u00a7

Blanket Implementations\u00a7

Source\u00a7

impl<T> Any for T
where\n+

Fields\u00a7

\u00a7display_output: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7panic_abort: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl Options

Source

pub fn new() -> Options

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn display_output(self, display_output: bool) -> Options

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn panic_abort(self, panic_abort: bool) -> Options

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for Options

Source\u00a7

fn clone(&self) -> Options

Returns a duplicate 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 Options

Source\u00a7

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

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

impl Copy for Options

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/test/struct.TestDesc.html", "source2": "./usr/share/doc/rust-doc/html/test/test/struct.TestDesc.html", "unified_diff": "@@ -1,28 +1,28 @@\n TestDesc in test::test - Rust

Struct TestDesc

Source
pub struct TestDesc {\n     pub name: TestName,\n-    pub ignore: bool,\n-    pub ignore_message: Option<&'static str>,\n-    pub source_file: &'static str,\n-    pub start_line: usize,\n-    pub start_col: usize,\n-    pub end_line: usize,\n-    pub end_col: usize,\n+    pub ignore: bool,\n+    pub ignore_message: Option<&'static str>,\n+    pub source_file: &'static str,\n+    pub start_line: usize,\n+    pub start_col: usize,\n+    pub end_line: usize,\n+    pub end_col: usize,\n     pub should_panic: ShouldPanic,\n-    pub compile_fail: bool,\n-    pub no_run: bool,\n+    pub compile_fail: bool,\n+    pub no_run: bool,\n     pub test_type: TestType,\n-}
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Fields\u00a7

\u00a7name: TestName
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7ignore: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7ignore_message: Option<&'static str>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7source_file: &'static str
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7start_line: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7start_col: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7end_line: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7end_col: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7should_panic: ShouldPanic
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7compile_fail: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7no_run: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7test_type: TestType
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl TestDesc

Source

pub fn padded_name(&self, column_count: usize, align: NamePadding) -> String

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn test_mode(&self) -> Option<&'static str>

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Returns None for ignored test or tests that are just run, otherwise returns a description of the type of test.\n+}

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Fields\u00a7

\u00a7name: TestName
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7ignore: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7ignore_message: Option<&'static str>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7source_file: &'static str
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7start_line: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7start_col: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7end_line: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7end_col: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7should_panic: ShouldPanic
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7compile_fail: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7no_run: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7test_type: TestType
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl TestDesc

Source

pub fn padded_name(&self, column_count: usize, align: NamePadding) -> String

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn test_mode(&self) -> Option<&'static str>

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Returns None for ignored test or tests that are just run, otherwise returns a description of the type of test.\n Descriptions include \u201cshould panic\u201d, \u201ccompile fail\u201d and \u201ccompile\u201d.

\n

Trait Implementations\u00a7

Source\u00a7

impl Clone for TestDesc

Source\u00a7

fn clone(&self) -> TestDesc

Returns a duplicate 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 TestDesc

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/test/struct.TestDescAndFn.html", "source2": "./usr/share/doc/rust-doc/html/test/test/struct.TestDescAndFn.html", "unified_diff": "@@ -1,22 +1,22 @@\n TestDescAndFn in test::test - Rust

Struct TestDescAndFn

Source
pub struct TestDescAndFn {\n     pub desc: TestDesc,\n     pub testfn: TestFn,\n }
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Fields\u00a7

\u00a7desc: TestDesc
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7testfn: TestFn
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl TestDescAndFn

Source

pub const fn new_doctest(\n- test_name: &'static str,\n- ignore: bool,\n- source_file: &'static str,\n- start_line: usize,\n- no_run: bool,\n- should_panic: bool,\n+ test_name: &'static str,\n+ ignore: bool,\n+ source_file: &'static str,\n+ start_line: usize,\n+ no_run: bool,\n+ should_panic: bool,\n testfn: TestFn,\n ) -> Self

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Debug for TestDescAndFn

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> 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, 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/test/test/struct.TestExecTime.html", "source2": "./usr/share/doc/rust-doc/html/test/test/struct.TestExecTime.html", "unified_diff": "@@ -1,16 +1,16 @@\n TestExecTime in test::test - Rust

Struct TestExecTime

Source
pub struct TestExecTime(pub Duration);
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

The measured execution time of a unit test.

\n-

Tuple Fields\u00a7

\u00a70: Duration
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for TestExecTime

Source\u00a7

fn clone(&self) -> TestExecTime

Returns a duplicate 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 TestExecTime

Source\u00a7

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

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

impl Display for TestExecTime

Source\u00a7

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

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

impl PartialEq for TestExecTime

Source\u00a7

fn eq(&self, other: &TestExecTime) -> 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+

Tuple Fields\u00a7

\u00a70: Duration
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for TestExecTime

Source\u00a7

fn clone(&self) -> TestExecTime

Returns a duplicate 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 TestExecTime

Source\u00a7

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

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

impl Display for TestExecTime

Source\u00a7

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

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

impl PartialEq for TestExecTime

Source\u00a7

fn eq(&self, other: &TestExecTime) -> 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 StructuralPartialEq for TestExecTime

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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

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/test/test/struct.TestId.html", "source2": "./usr/share/doc/rust-doc/html/test/test/struct.TestId.html", "unified_diff": "@@ -1,16 +1,16 @@\n-TestId in test::test - Rust

Struct TestId

Source
pub struct TestId(pub usize);
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Tuple Fields\u00a7

\u00a70: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for TestId

Source\u00a7

fn clone(&self) -> TestId

Returns a duplicate 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 TestId

Source\u00a7

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

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

impl Hash for TestId

Source\u00a7

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 \u00b7 Source\u00a7

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n+TestId in test::test - Rust

Struct TestId

Source
pub struct TestId(pub usize);
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Tuple Fields\u00a7

\u00a70: usize
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for TestId

Source\u00a7

fn clone(&self) -> TestId

Returns a duplicate 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 TestId

Source\u00a7

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

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

impl Hash for TestId

Source\u00a7

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 \u00b7 Source\u00a7

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n H: Hasher,\n- Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source\u00a7

impl PartialEq for TestId

Source\u00a7

fn eq(&self, other: &TestId) -> 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+ Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source\u00a7

impl PartialEq for TestId

Source\u00a7

fn eq(&self, other: &TestId) -> 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 Copy for TestId

Source\u00a7

impl Eq for TestId

Source\u00a7

impl StructuralPartialEq for TestId

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/test/test/struct.TestOpts.html", "source2": "./usr/share/doc/rust-doc/html/test/test/struct.TestOpts.html", "unified_diff": "@@ -1,34 +1,34 @@\n TestOpts in test::test - Rust

Struct TestOpts

Source
pub struct TestOpts {
Show 19 fields\n- pub list: bool,\n+ pub list: bool,\n pub filters: Vec<String>,\n- pub filter_exact: bool,\n- pub force_run_in_process: bool,\n- pub exclude_should_panic: bool,\n+ pub filter_exact: bool,\n+ pub force_run_in_process: bool,\n+ pub exclude_should_panic: bool,\n pub run_ignored: RunIgnored,\n- pub run_tests: bool,\n- pub bench_benchmarks: bool,\n- pub logfile: Option<PathBuf>,\n- pub nocapture: bool,\n+ pub run_tests: bool,\n+ pub bench_benchmarks: bool,\n+ pub logfile: Option<PathBuf>,\n+ pub nocapture: bool,\n pub color: ColorConfig,\n pub format: OutputFormat,\n- pub shuffle: bool,\n- pub shuffle_seed: Option<u64>,\n- pub test_threads: Option<usize>,\n+ pub shuffle: bool,\n+ pub shuffle_seed: Option<u64>,\n+ pub test_threads: Option<usize>,\n pub skip: Vec<String>,\n pub time_options: Option<TestTimeOptions>,\n- pub fail_fast: bool,\n+ pub fail_fast: bool,\n pub options: Options,\n-
}
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Fields\u00a7

\u00a7list: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7filters: Vec<String>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7filter_exact: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7force_run_in_process: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7exclude_should_panic: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7run_ignored: RunIgnored
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7run_tests: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7bench_benchmarks: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7logfile: Option<PathBuf>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7nocapture: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7color: ColorConfig
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7format: OutputFormat
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7shuffle: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7shuffle_seed: Option<u64>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7test_threads: Option<usize>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7skip: Vec<String>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7time_options: Option<TestTimeOptions>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7fail_fast: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Stop at first failing test.\n+}

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Fields\u00a7

\u00a7list: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7filters: Vec<String>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7filter_exact: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7force_run_in_process: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7exclude_should_panic: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7run_ignored: RunIgnored
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7run_tests: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7bench_benchmarks: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7logfile: Option<PathBuf>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7nocapture: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7color: ColorConfig
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7format: OutputFormat
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7shuffle: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7shuffle_seed: Option<u64>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7test_threads: Option<usize>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7skip: Vec<String>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7time_options: Option<TestTimeOptions>
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7fail_fast: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Stop at first failing test.\n May run a few more tests due to threading, but will\n abort as soon as possible.

\n-
\u00a7options: Options
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl TestOpts

Source

pub fn use_color(&self) -> bool

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Debug for TestOpts

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+
\u00a7options: Options
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl TestOpts

Source

pub fn use_color(&self) -> bool

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Debug for TestOpts

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> 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, 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/test/test/struct.TestTimeOptions.html", "source2": "./usr/share/doc/rust-doc/html/test/test/struct.TestTimeOptions.html", "unified_diff": "@@ -1,22 +1,22 @@\n TestTimeOptions in test::test - Rust

Struct TestTimeOptions

Source
pub struct TestTimeOptions {\n-    pub error_on_excess: bool,\n+    pub error_on_excess: bool,\n     pub unit_threshold: TimeThreshold,\n     pub integration_threshold: TimeThreshold,\n     pub doctest_threshold: TimeThreshold,\n }
\ud83d\udd2cThis is a nightly-only experimental API. (test)
Expand description

Structure with parameters for calculating test execution time.

\n-

Fields\u00a7

\u00a7error_on_excess: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Denotes if the test critical execution time limit excess should be considered\n+

Fields\u00a7

\u00a7error_on_excess: bool
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Denotes if the test critical execution time limit excess should be considered\n a test failure.

\n-
\u00a7unit_threshold: TimeThreshold
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7integration_threshold: TimeThreshold
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7doctest_threshold: TimeThreshold
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl TestTimeOptions

Source

pub fn new_from_env(error_on_excess: bool) -> Self

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn is_warn(&self, test: &TestDesc, exec_time: &TestExecTime) -> bool

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn is_critical(&self, test: &TestDesc, exec_time: &TestExecTime) -> bool

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for TestTimeOptions

Source\u00a7

fn clone(&self) -> TestTimeOptions

Returns a duplicate 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 TestTimeOptions

Source\u00a7

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

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

impl Default for TestTimeOptions

Source\u00a7

fn default() -> TestTimeOptions

Returns the \u201cdefault value\u201d for a type. Read more
Source\u00a7

impl PartialEq for TestTimeOptions

Source\u00a7

fn eq(&self, other: &TestTimeOptions) -> 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+
\u00a7unit_threshold: TimeThreshold
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7integration_threshold: TimeThreshold
\ud83d\udd2cThis is a nightly-only experimental API. (test)
\u00a7doctest_threshold: TimeThreshold
\ud83d\udd2cThis is a nightly-only experimental API. (test)

Implementations\u00a7

Source\u00a7

impl TestTimeOptions

Source

pub fn new_from_env(error_on_excess: bool) -> Self

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn is_warn(&self, test: &TestDesc, exec_time: &TestExecTime) -> bool

\ud83d\udd2cThis is a nightly-only experimental API. (test)
Source

pub fn is_critical(&self, test: &TestDesc, exec_time: &TestExecTime) -> bool

\ud83d\udd2cThis is a nightly-only experimental API. (test)

Trait Implementations\u00a7

Source\u00a7

impl Clone for TestTimeOptions

Source\u00a7

fn clone(&self) -> TestTimeOptions

Returns a duplicate 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 TestTimeOptions

Source\u00a7

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

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

impl Default for TestTimeOptions

Source\u00a7

fn default() -> TestTimeOptions

Returns the \u201cdefault value\u201d for a type. Read more
Source\u00a7

impl PartialEq for TestTimeOptions

Source\u00a7

fn eq(&self, other: &TestTimeOptions) -> 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 Copy for TestTimeOptions

Source\u00a7

impl Eq for TestTimeOptions

Source\u00a7

impl StructuralPartialEq for TestTimeOptions

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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, dest: *mut u8)

\ud83d\udd2cThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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/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": "@@ -95,16 +95,16 @@\n [\"impl<const N: usize> PartialEq<[u8; N]> for ByteString\"]\n ]],\n [\"core\", []],\n [\"proc_macro\", [\n [\"impl PartialEq for ConversionErrorKind\"],\n [\"impl PartialEq for Delimiter\"],\n [\"impl PartialEq for Spacing\"],\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@@ -217,8 +217,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\":[42216,12,1394,31670,3233]}\n+//{\"start\":57,\"fragment_lengths\":[42216,12,1328,31670,3233]}\n"}]}]}]}]}]}