--- /srv/rebuilderd/tmp/rebuilderdiVNHqf/inputs/rust-doc_1.88.0+dfsg1-2_all.deb +++ /srv/rebuilderd/tmp/rebuilderdiVNHqf/out/rust-doc_1.88.0+dfsg1-2_all.deb ├── file list │ @@ -1,3 +1,3 @@ │ -rw-r--r-- 0 0 0 4 2025-10-03 08:19:57.000000 debian-binary │ --rw-r--r-- 0 0 0 986684 2025-10-03 08:19:57.000000 control.tar.xz │ --rw-r--r-- 0 0 0 21677504 2025-10-03 08:19:57.000000 data.tar.xz │ +-rw-r--r-- 0 0 0 986648 2025-10-03 08:19:57.000000 control.tar.xz │ +-rw-r--r-- 0 0 0 21677756 2025-10-03 08:19:57.000000 data.tar.xz ├── control.tar.xz │ ├── control.tar │ │ ├── ./control │ │ │ @@ -1,13 +1,13 @@ │ │ │ Package: rust-doc │ │ │ Source: rustc │ │ │ Version: 1.88.0+dfsg1-2 │ │ │ Architecture: all │ │ │ Maintainer: Debian Rust Maintainers │ │ │ -Installed-Size: 553155 │ │ │ +Installed-Size: 553176 │ │ │ Depends: libjs-jquery, libjs-highlight.js, libjs-mathjax, fonts-open-sans, fonts-font-awesome │ │ │ Recommends: cargo-doc │ │ │ Section: doc │ │ │ Priority: optional │ │ │ Homepage: http://www.rust-lang.org/ │ │ │ Description: Rust systems programming language - Documentation │ │ │ Rust is a curly-brace, block-structured expression language. It │ │ ├── ./md5sums │ │ │ ├── ./md5sums │ │ │ │┄ Files differ ├── data.tar.xz │ ├── data.tar │ │ ├── file list │ │ │ @@ -1003,17 +1003,17 @@ │ │ │ -rw-r--r-- 0 root (0) root (0) 332453 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/clippy/print.html │ │ │ -rw-r--r-- 0 root (0) root (0) 19141 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/clippy/searcher-c907a035.js │ │ │ -rw-r--r-- 0 root (0) root (0) 1272951 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/clippy/searchindex-b2b6c81e.js │ │ │ -rw-r--r-- 0 root (0) root (0) 8250 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/clippy/toc-c06a5134.js │ │ │ -rw-r--r-- 0 root (0) root (0) 7042 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/clippy/toc.html │ │ │ -rw-r--r-- 0 root (0) root (0) 1694 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/clippy/tomorrow-night-4c0ae647.css │ │ │ -rw-r--r-- 0 root (0) root (0) 17112 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/clippy/usage.html │ │ │ --rw-r--r-- 0 root (0) root (0) 1514 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/complement-design-faq.html │ │ │ --rw-r--r-- 0 root (0) root (0) 1518 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/complement-lang-faq.html │ │ │ --rw-r--r-- 0 root (0) root (0) 1516 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/complement-project-faq.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1450 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/complement-design-faq.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1454 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/complement-lang-faq.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1452 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/complement-project-faq.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/core/ │ │ │ -rw-r--r-- 0 root (0) root (0) 2231341 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/core/all.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/core/alloc/ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/core/alloc/global/ │ │ │ -rw-r--r-- 0 root (0) root (0) 440 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/core/alloc/global/trait.GlobalAlloc.html │ │ │ -rw-r--r-- 0 root (0) root (0) 5695 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/core/alloc/index.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/core/alloc/layout/ │ │ │ @@ -41372,30 +41372,30 @@ │ │ │ -rw-r--r-- 0 root (0) root (0) 763685 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/error_codes/print.html │ │ │ -rw-r--r-- 0 root (0) root (0) 433 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/error_codes/redirect.js │ │ │ -rw-r--r-- 0 root (0) root (0) 19132 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/error_codes/searcher.js │ │ │ -rw-r--r-- 0 root (0) root (0) 2011632 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/error_codes/searchindex.js │ │ │ -rw-r--r-- 0 root (0) root (0) 49625 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/error_codes/toc.html │ │ │ -rw-r--r-- 0 root (0) root (0) 42603 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/error_codes/toc.js │ │ │ -rw-r--r-- 0 root (0) root (0) 1694 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/error_codes/tomorrow-night.css │ │ │ --rw-r--r-- 0 root (0) root (0) 1651 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/grammar.html │ │ │ --rw-r--r-- 0 root (0) root (0) 1581 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-crates.html │ │ │ --rw-r--r-- 0 root (0) root (0) 1551 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-error-handling.html │ │ │ --rw-r--r-- 0 root (0) root (0) 1582 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-ffi.html │ │ │ --rw-r--r-- 0 root (0) root (0) 1545 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-macros.html │ │ │ --rw-r--r-- 0 root (0) root (0) 1576 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-ownership.html │ │ │ --rw-r--r-- 0 root (0) root (0) 1508 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-plugins.html │ │ │ --rw-r--r-- 0 root (0) root (0) 1729 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-pointers.html │ │ │ --rw-r--r-- 0 root (0) root (0) 1554 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-strings.html │ │ │ --rw-r--r-- 0 root (0) root (0) 1588 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-tasks.html │ │ │ --rw-r--r-- 0 root (0) root (0) 1556 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-testing.html │ │ │ --rw-r--r-- 0 root (0) root (0) 1583 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-unsafe.html │ │ │ --rw-r--r-- 0 root (0) root (0) 1531 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1587 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/grammar.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1517 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-crates.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1487 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-error-handling.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1518 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-ffi.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1481 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-macros.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1512 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-ownership.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1444 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-plugins.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1665 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-pointers.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1490 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-strings.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1524 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-tasks.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1492 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-testing.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1519 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide-unsafe.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1467 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/guide.html │ │ │ -rw-r--r-- 0 root (0) root (0) 2942 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/help.html │ │ │ -rw-r--r-- 0 root (0) root (0) 10742 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/index.html │ │ │ --rw-r--r-- 0 root (0) root (0) 1569 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/intro.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1505 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/intro.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/nomicon/ │ │ │ -rw-r--r-- 0 root (0) root (0) 72 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/nomicon/.nojekyll │ │ │ -rw-r--r-- 0 root (0) root (0) 16403 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/nomicon/aliasing.html │ │ │ -rw-r--r-- 0 root (0) root (0) 393 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/nomicon/arc-and-mutex.html │ │ │ -rw-r--r-- 0 root (0) root (0) 373 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/nomicon/arc-base.html │ │ │ -rw-r--r-- 0 root (0) root (0) 377 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/nomicon/arc-clone.html │ │ │ -rw-r--r-- 0 root (0) root (0) 373 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/nomicon/arc-drop.html │ │ │ @@ -41494,62 +41494,62 @@ │ │ │ -rw-r--r-- 0 root (0) root (0) 357 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/nomicon/vec-layout.html │ │ │ -rw-r--r-- 0 root (0) root (0) 365 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/nomicon/vec-push-pop.html │ │ │ -rw-r--r-- 0 root (0) root (0) 345 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/nomicon/vec-raw.html │ │ │ -rw-r--r-- 0 root (0) root (0) 349 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/nomicon/vec-zsts.html │ │ │ -rw-r--r-- 0 root (0) root (0) 329 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/nomicon/vec.html │ │ │ -rw-r--r-- 0 root (0) root (0) 15303 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/nomicon/what-unsafe-does.html │ │ │ -rw-r--r-- 0 root (0) root (0) 14964 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/nomicon/working-with-unsafe.html │ │ │ --rw-r--r-- 0 root (0) root (0) 4303 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/not_found.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 4239 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/not_found.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/ │ │ │ -rw-r--r-- 0 root (0) root (0) 4615 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/all.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/diagnostic/ │ │ │ -rw-r--r-- 0 root (0) root (0) 400 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/diagnostic/enum.Level.html │ │ │ -rw-r--r-- 0 root (0) root (0) 428 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/diagnostic/struct.Diagnostic.html │ │ │ -rw-r--r-- 0 root (0) root (0) 420 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/diagnostic/trait.MultiSpan.html │ │ │ --rw-r--r-- 0 root (0) root (0) 24888 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.ConversionErrorKind.html │ │ │ --rw-r--r-- 0 root (0) root (0) 31794 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.Delimiter.html │ │ │ --rw-r--r-- 0 root (0) root (0) 26950 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.EscapeError.html │ │ │ --rw-r--r-- 0 root (0) root (0) 28056 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.Level.html │ │ │ --rw-r--r-- 0 root (0) root (0) 31341 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.Spacing.html │ │ │ --rw-r--r-- 0 root (0) root (0) 50507 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.TokenTree.html │ │ │ --rw-r--r-- 0 root (0) root (0) 4221 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/fn.is_available.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 25038 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.ConversionErrorKind.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 32034 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.Delimiter.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 27010 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.EscapeError.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 28206 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.Level.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 31581 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.Spacing.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 50687 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/enum.TokenTree.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 4251 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/fn.is_available.html │ │ │ -rw-r--r-- 0 root (0) root (0) 4048 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/fn.quote.html │ │ │ -rw-r--r-- 0 root (0) root (0) 4024 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/fn.quote_span.html │ │ │ -rw-r--r-- 0 root (0) root (0) 10987 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/index.html │ │ │ -rw-r--r-- 0 root (0) root (0) 336 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/macro.quote!.html │ │ │ -rw-r--r-- 0 root (0) root (0) 4265 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/macro.quote.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/quote/ │ │ │ -rw-r--r-- 0 root (0) root (0) 392 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/quote/fn.quote.html │ │ │ -rw-r--r-- 0 root (0) root (0) 412 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/quote/fn.quote_span.html │ │ │ -rw-r--r-- 0 root (0) root (0) 362 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/sidebar-items1.88.0.js │ │ │ --rw-r--r-- 0 root (0) root (0) 45530 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Diagnostic.html │ │ │ --rw-r--r-- 0 root (0) root (0) 26569 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.ExpandError.html │ │ │ --rw-r--r-- 0 root (0) root (0) 40019 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Group.html │ │ │ --rw-r--r-- 0 root (0) root (0) 38157 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Ident.html │ │ │ --rw-r--r-- 0 root (0) root (0) 26703 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.LexError.html │ │ │ --rw-r--r-- 0 root (0) root (0) 84723 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Literal.html │ │ │ --rw-r--r-- 0 root (0) root (0) 42720 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Punct.html │ │ │ --rw-r--r-- 0 root (0) root (0) 47066 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Span.html │ │ │ --rw-r--r-- 0 root (0) root (0) 57391 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.TokenStream.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 45710 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Diagnostic.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 26659 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.ExpandError.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 40169 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Group.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 38367 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Ident.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 26793 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.LexError.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 85953 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Literal.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 43200 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Punct.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 47366 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.Span.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 57661 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/struct.TokenStream.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/to_tokens/ │ │ │ -rw-r--r-- 0 root (0) root (0) 416 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/to_tokens/trait.ToTokens.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/token_stream/ │ │ │ -rw-r--r-- 0 root (0) root (0) 4235 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/token_stream/index.html │ │ │ -rw-r--r-- 0 root (0) root (0) 47 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/token_stream/sidebar-items1.88.0.js │ │ │ --rw-r--r-- 0 root (0) root (0) 133801 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/token_stream/struct.IntoIter.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 135286 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/token_stream/struct.IntoIter.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_env/ │ │ │ --rw-r--r-- 0 root (0) root (0) 5236 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_env/fn.var.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 5317 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_env/fn.var.html │ │ │ -rw-r--r-- 0 root (0) root (0) 4576 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_env/index.html │ │ │ -rw-r--r-- 0 root (0) root (0) 38 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_env/sidebar-items1.88.0.js │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_path/ │ │ │ --rw-r--r-- 0 root (0) root (0) 3977 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_path/fn.path.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 4004 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_path/fn.path.html │ │ │ -rw-r--r-- 0 root (0) root (0) 4179 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_path/index.html │ │ │ -rw-r--r-- 0 root (0) root (0) 39 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/tracked_path/sidebar-items1.88.0.js │ │ │ -rw-r--r-- 0 root (0) root (0) 9272 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/trait.MultiSpan.html │ │ │ --rw-r--r-- 0 root (0) root (0) 50110 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/trait.ToTokens.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 50680 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/proc_macro/trait.ToTokens.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/reference/ │ │ │ -rw-r--r-- 0 root (0) root (0) 72 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/reference/.nojekyll │ │ │ -rw-r--r-- 0 root (0) root (0) 19660 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/reference/abi.html │ │ │ -rw-r--r-- 0 root (0) root (0) 10229 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/reference/appendices.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/reference/attributes/ │ │ │ -rw-r--r-- 0 root (0) root (0) 63678 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/reference/attributes/codegen.html │ │ │ -rw-r--r-- 0 root (0) root (0) 23099 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/reference/attributes/debugger.html │ │ │ @@ -41689,15 +41689,15 @@ │ │ │ -rw-r--r-- 0 root (0) root (0) 349 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/reference/unsafe-blocks.html │ │ │ -rw-r--r-- 0 root (0) root (0) 349 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/reference/unsafe-functions.html │ │ │ -rw-r--r-- 0 root (0) root (0) 19738 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/reference/unsafe-keyword.html │ │ │ -rw-r--r-- 0 root (0) root (0) 13896 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/reference/unsafety.html │ │ │ -rw-r--r-- 0 root (0) root (0) 13228 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/reference/variables.html │ │ │ -rw-r--r-- 0 root (0) root (0) 29615 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/reference/visibility-and-privacy.html │ │ │ -rw-r--r-- 0 root (0) root (0) 12082 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/reference/whitespace.html │ │ │ --rw-r--r-- 0 root (0) root (0) 1610 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/reference.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1546 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/reference.html │ │ │ -rw-r--r-- 0 root (0) root (0) 1019694 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/releases.html │ │ │ -rw-r--r-- 0 root (0) root (0) 206656 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/releases.md.gz │ │ │ -rw-r--r-- 0 root (0) root (0) 334 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/robots.txt │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rust-by-example/ │ │ │ -rw-r--r-- 0 root (0) root (0) 72 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rust-by-example/.nojekyll │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rust-by-example/attribute/ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rust-by-example/attribute/cfg/ │ │ │ @@ -42493,15 +42493,15 @@ │ │ │ -rw-r--r-- 0 root (0) root (0) 11492 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rust-by-example/zh/variable_bindings/declare.html │ │ │ -rw-r--r-- 0 root (0) root (0) 11075 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rust-by-example/zh/variable_bindings/freeze.html │ │ │ -rw-r--r-- 0 root (0) root (0) 10961 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rust-by-example/zh/variable_bindings/mut.html │ │ │ -rw-r--r-- 0 root (0) root (0) 11956 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rust-by-example/zh/variable_bindings/scope.html │ │ │ -rw-r--r-- 0 root (0) root (0) 11339 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rust-by-example/zh/variable_bindings.html │ │ │ -rw-r--r-- 0 root (0) root (0) 691 2024-12-02 08:25:43.000000 ./usr/share/doc/rust-doc/html/rust-logo-32x32-blk.png │ │ │ -rw-r--r-- 0 root (0) root (0) 5636 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rust.css │ │ │ --rw-r--r-- 0 root (0) root (0) 1536 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rust.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1472 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rust.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rustc/ │ │ │ -rw-r--r-- 0 root (0) root (0) 72 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rustc/.nojekyll │ │ │ -rw-r--r-- 0 root (0) root (0) 929 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rustc/ayu-highlight-56612340.css │ │ │ -rw-r--r-- 0 root (0) root (0) 26966 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rustc/book-c626cf90.js │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rustc/check-cfg/ │ │ │ -rw-r--r-- 0 root (0) root (0) 13958 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rustc/check-cfg/cargo-specifics.html │ │ │ -rw-r--r-- 0 root (0) root (0) 22920 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rustc/check-cfg.html │ │ │ @@ -42702,15 +42702,15 @@ │ │ │ -rw-r--r-- 0 root (0) root (0) 433 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rustdoc/what-to-include.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rustdoc/write-documentation/ │ │ │ -rw-r--r-- 0 root (0) root (0) 35704 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rustdoc/write-documentation/documentation-tests.html │ │ │ -rw-r--r-- 0 root (0) root (0) 18069 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rustdoc/write-documentation/linking-to-items-by-name.html │ │ │ -rw-r--r-- 0 root (0) root (0) 17242 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rustdoc/write-documentation/re-exports.html │ │ │ -rw-r--r-- 0 root (0) root (0) 23032 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rustdoc/write-documentation/the-doc-attribute.html │ │ │ -rw-r--r-- 0 root (0) root (0) 15048 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rustdoc/write-documentation/what-to-include.html │ │ │ --rw-r--r-- 0 root (0) root (0) 1505 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rustdoc.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1441 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/rustdoc.html │ │ │ -rw-r--r-- 0 root (0) root (0) 3582438 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/search-index1.88.0.js │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/search.desc/ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/search.desc/alloc/ │ │ │ -rw-r--r-- 0 root (0) root (0) 89096 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/search.desc/alloc/alloc-desc-0-1.88.0.js │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/search.desc/core/ │ │ │ -rw-r--r-- 0 root (0) root (0) 133235 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/search.desc/core/core-desc-0-1.88.0.js │ │ │ -rw-r--r-- 0 root (0) root (0) 133439 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/search.desc/core/core-desc-1-1.88.0.js │ │ │ @@ -46452,42 +46452,42 @@ │ │ │ -rw-r--r-- 0 root (0) root (0) 4481 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/style-guide/toc-281b99ce.js │ │ │ -rw-r--r-- 0 root (0) root (0) 2865 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/style-guide/toc.html │ │ │ -rw-r--r-- 0 root (0) root (0) 1694 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/style-guide/tomorrow-night-4c0ae647.css │ │ │ -rw-r--r-- 0 root (0) root (0) 13626 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/style-guide/types.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/ │ │ │ -rw-r--r-- 0 root (0) root (0) 6208 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/all.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/bench/ │ │ │ --rw-r--r-- 0 root (0) root (0) 4443 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/bench/fn.benchmark.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 4524 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/bench/fn.benchmark.html │ │ │ -rw-r--r-- 0 root (0) root (0) 3941 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/bench/fn.black_box.html │ │ │ -rw-r--r-- 0 root (0) root (0) 3703 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/bench/fn.fmt_bench_samples.html │ │ │ --rw-r--r-- 0 root (0) root (0) 3788 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/bench/fn.iter.html │ │ │ --rw-r--r-- 0 root (0) root (0) 4292 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/bench/fn.run_once.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 3815 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/bench/fn.iter.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 4346 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/bench/fn.run_once.html │ │ │ -rw-r--r-- 0 root (0) root (0) 5315 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/bench/index.html │ │ │ -rw-r--r-- 0 root (0) root (0) 130 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/bench/sidebar-items1.88.0.js │ │ │ --rw-r--r-- 0 root (0) root (0) 29412 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/bench/struct.BenchSamples.html │ │ │ --rw-r--r-- 0 root (0) root (0) 27655 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/bench/struct.Bencher.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 29682 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/bench/struct.BenchSamples.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 27871 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/bench/struct.Bencher.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/cli/ │ │ │ -rw-r--r-- 0 root (0) root (0) 408 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/cli/fn.parse_opts.html │ │ │ -rw-r--r-- 0 root (0) root (0) 396 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/cli/struct.TestOpts.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/console/ │ │ │ -rw-r--r-- 0 root (0) root (0) 416 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/console/fn.run_tests_console.html │ │ │ --rw-r--r-- 0 root (0) root (0) 28105 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/enum.ColorConfig.html │ │ │ --rw-r--r-- 0 root (0) root (0) 31832 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/enum.NamePadding.html │ │ │ --rw-r--r-- 0 root (0) root (0) 31764 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/enum.OutputFormat.html │ │ │ --rw-r--r-- 0 root (0) root (0) 29814 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/enum.RunIgnored.html │ │ │ --rw-r--r-- 0 root (0) root (0) 32519 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/enum.ShouldPanic.html │ │ │ --rw-r--r-- 0 root (0) root (0) 29256 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/enum.TestFn.html │ │ │ --rw-r--r-- 0 root (0) root (0) 37635 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/enum.TestName.html │ │ │ --rw-r--r-- 0 root (0) root (0) 33207 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/enum.TestType.html │ │ │ --rw-r--r-- 0 root (0) root (0) 4163 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/fn.assert_test_result.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 28255 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/enum.ColorConfig.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 32132 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/enum.NamePadding.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 32004 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/enum.OutputFormat.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 30054 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/enum.RunIgnored.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 32879 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/enum.ShouldPanic.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 29856 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/enum.TestFn.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 38085 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/enum.TestName.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 33507 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/enum.TestType.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 4223 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/fn.assert_test_result.html │ │ │ -rw-r--r-- 0 root (0) root (0) 3789 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/fn.convert_benchmarks_to_tests.html │ │ │ -rw-r--r-- 0 root (0) root (0) 3834 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/fn.filter_tests.html │ │ │ --rw-r--r-- 0 root (0) root (0) 4247 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/fn.run_test.html │ │ │ --rw-r--r-- 0 root (0) root (0) 4171 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/fn.run_tests.html │ │ │ --rw-r--r-- 0 root (0) root (0) 4094 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/fn.run_tests_console.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 4367 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/fn.run_test.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 4291 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/fn.run_tests.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 4154 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/fn.run_tests_console.html │ │ │ -rw-r--r-- 0 root (0) root (0) 3840 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/fn.test_main.html │ │ │ -rw-r--r-- 0 root (0) root (0) 3872 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/fn.test_main_static.html │ │ │ -rw-r--r-- 0 root (0) root (0) 3976 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/fn.test_main_static_abort.html │ │ │ -rw-r--r-- 0 root (0) root (0) 4066 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/fn.test_main_with_exit_callback.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/helpers/ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/helpers/metrics/ │ │ │ -rw-r--r-- 0 root (0) root (0) 420 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/helpers/metrics/struct.Metric.html │ │ │ @@ -46498,43 +46498,43 @@ │ │ │ -rw-r--r-- 0 root (0) root (0) 404 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/options/enum.OutputFormat.html │ │ │ -rw-r--r-- 0 root (0) root (0) 396 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/options/enum.RunIgnored.html │ │ │ -rw-r--r-- 0 root (0) root (0) 420 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/options/enum.RunStrategy.html │ │ │ -rw-r--r-- 0 root (0) root (0) 400 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/options/enum.ShouldPanic.html │ │ │ -rw-r--r-- 0 root (0) root (0) 392 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/options/struct.Options.html │ │ │ -rw-r--r-- 0 root (0) root (0) 437 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/sidebar-items1.88.0.js │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/stats/ │ │ │ --rw-r--r-- 0 root (0) root (0) 4523 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/stats/fn.winsorize.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 4577 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/stats/fn.winsorize.html │ │ │ -rw-r--r-- 0 root (0) root (0) 5040 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/stats/index.html │ │ │ -rw-r--r-- 0 root (0) root (0) 83 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/stats/sidebar-items1.88.0.js │ │ │ --rw-r--r-- 0 root (0) root (0) 36673 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/stats/struct.Summary.html │ │ │ --rw-r--r-- 0 root (0) root (0) 27752 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/stats/trait.Stats.html │ │ │ --rw-r--r-- 0 root (0) root (0) 29232 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/struct.Options.html │ │ │ --rw-r--r-- 0 root (0) root (0) 34171 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/struct.TestDesc.html │ │ │ --rw-r--r-- 0 root (0) root (0) 22178 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/struct.TestDescAndFn.html │ │ │ --rw-r--r-- 0 root (0) root (0) 31163 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/struct.TestId.html │ │ │ --rw-r--r-- 0 root (0) root (0) 32840 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/struct.TestOpts.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 37672 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/stats/struct.Summary.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 29075 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/stats/trait.Stats.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 29562 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/struct.Options.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 34921 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/struct.TestDesc.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 22418 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/struct.TestDescAndFn.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 31523 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/struct.TestId.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 33650 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/struct.TestOpts.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/ │ │ │ --rw-r--r-- 0 root (0) root (0) 30267 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/enum.RunIgnored.html │ │ │ --rw-r--r-- 0 root (0) root (0) 25703 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/enum.RunStrategy.html │ │ │ --rw-r--r-- 0 root (0) root (0) 33026 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/enum.ShouldPanic.html │ │ │ --rw-r--r-- 0 root (0) root (0) 38232 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/enum.TestName.html │ │ │ --rw-r--r-- 0 root (0) root (0) 30911 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/enum.TestResult.html │ │ │ --rw-r--r-- 0 root (0) root (0) 33708 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/enum.TestType.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 30483 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/enum.RunIgnored.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 25838 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/enum.RunStrategy.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 33350 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/enum.ShouldPanic.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 38637 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/enum.TestName.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 31127 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/enum.TestResult.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 33978 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/enum.TestType.html │ │ │ -rw-r--r-- 0 root (0) root (0) 4624 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/fn.parse_opts.html │ │ │ -rw-r--r-- 0 root (0) root (0) 11052 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/index.html │ │ │ -rw-r--r-- 0 root (0) root (0) 252 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/sidebar-items1.88.0.js │ │ │ --rw-r--r-- 0 root (0) root (0) 29547 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/struct.Metric.html │ │ │ --rw-r--r-- 0 root (0) root (0) 30004 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/struct.MetricMap.html │ │ │ --rw-r--r-- 0 root (0) root (0) 29676 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/struct.Options.html │ │ │ --rw-r--r-- 0 root (0) root (0) 34669 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestDesc.html │ │ │ --rw-r--r-- 0 root (0) root (0) 22523 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestDescAndFn.html │ │ │ --rw-r--r-- 0 root (0) root (0) 31815 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestExecTime.html │ │ │ --rw-r--r-- 0 root (0) root (0) 31670 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestId.html │ │ │ --rw-r--r-- 0 root (0) root (0) 33289 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestOpts.html │ │ │ --rw-r--r-- 0 root (0) root (0) 36022 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestTimeOptions.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 29817 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/struct.Metric.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 30301 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/struct.MetricMap.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 29973 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/struct.Options.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 35344 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestDesc.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 22739 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestDescAndFn.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 32031 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestExecTime.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 31994 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestId.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 34018 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestOpts.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 36373 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test/struct.TestTimeOptions.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test_result/ │ │ │ -rw-r--r-- 0 root (0) root (0) 416 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/test_result/enum.TestResult.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/time/ │ │ │ -rw-r--r-- 0 root (0) root (0) 432 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/time/struct.TestExecTime.html │ │ │ -rw-r--r-- 0 root (0) root (0) 444 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/time/struct.TestTimeOptions.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/types/ │ │ │ -rw-r--r-- 0 root (0) root (0) 400 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/test/types/enum.NamePadding.html │ │ │ @@ -46570,15 +46570,15 @@ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/clone/ │ │ │ -rw-r--r-- 0 root (0) root (0) 45786 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/clone/trait.Clone.js │ │ │ -rw-r--r-- 0 root (0) root (0) 759 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/clone/trait.CloneToUninit.js │ │ │ -rw-r--r-- 0 root (0) root (0) 2592 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/clone/trait.UseCloned.js │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/cmp/ │ │ │ -rw-r--r-- 0 root (0) root (0) 20562 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.Eq.js │ │ │ -rw-r--r-- 0 root (0) root (0) 9300 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.Ord.js │ │ │ --rw-r--r-- 0 root (0) root (0) 75174 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.PartialEq.js │ │ │ +-rw-r--r-- 0 root (0) root (0) 75240 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.PartialEq.js │ │ │ -rw-r--r-- 0 root (0) root (0) 36774 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.PartialOrd.js │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/convert/ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/convert/num/ │ │ │ -rw-r--r-- 0 root (0) root (0) 292 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/convert/num/trait.FloatToInt.js │ │ │ -rw-r--r-- 0 root (0) root (0) 3608 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/convert/trait.AsMut.js │ │ │ -rw-r--r-- 0 root (0) root (0) 13407 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/convert/trait.AsRef.js │ │ │ -rw-r--r-- 0 root (0) root (0) 96660 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/core/convert/trait.From.js │ │ │ @@ -46869,15 +46869,15 @@ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/std/process/ │ │ │ -rw-r--r-- 0 root (0) root (0) 277 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/std/process/trait.Termination.js │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/std/std_float/ │ │ │ -rw-r--r-- 0 root (0) root (0) 277 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/std/std_float/trait.StdFloat.js │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/test/ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/test/stats/ │ │ │ -rw-r--r-- 0 root (0) root (0) 278 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/trait.impl/test/stats/trait.Stats.js │ │ │ --rw-r--r-- 0 root (0) root (0) 1597 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/tutorial.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 1533 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/tutorial.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/type.impl/ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/type.impl/alloc/ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/type.impl/alloc/alloc/ │ │ │ -rw-r--r-- 0 root (0) root (0) 13609 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/type.impl/alloc/alloc/struct.LayoutError.js │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/type.impl/core/ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/type.impl/core/alloc/ │ │ │ -rw-r--r-- 0 root (0) root (0) 13295 2025-10-03 08:19:57.000000 ./usr/share/doc/rust-doc/html/type.impl/core/alloc/struct.LayoutError.js │ │ ├── ./usr/share/doc/rust-doc/html/complement-design-faq.html │ │ │ @@ -2,15 +2,15 @@ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ The Rust Design FAQ │ │ │ │ │ │ - │ │ │ + │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

Enum ConversionErrorKind

Source
pub enum ConversionErrorKind {
│ │ │      FailedToUnescape(EscapeError),
│ │ │      InvalidLiteralKind,
│ │ │  }
🔬This is a nightly-only experimental API. (proc_macro_value #136652)
Expand description

Errors returned when trying to retrieve a literal unescaped value.

│ │ │

Variants§

§

FailedToUnescape(EscapeError)

🔬This is a nightly-only experimental API. (proc_macro_value #136652)

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

│ │ │
§

InvalidLiteralKind

🔬This is a nightly-only experimental API. (proc_macro_value #136652)

Trying to convert a literal with the wrong type.

│ │ │ -

Trait Implementations§

Source§

impl Debug for ConversionErrorKind

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ConversionErrorKind

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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

Trait Implementations§

Source§

impl Debug for ConversionErrorKind

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ConversionErrorKind

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl Eq for ConversionErrorKind

Source§

impl StructuralPartialEq for ConversionErrorKind

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/proc_macro/enum.Delimiter.html │ │ │ @@ -16,21 +16,21 @@ │ │ │

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

│ │ │ -

Trait Implementations§

1.29.0 · Source§

impl Clone for Delimiter

Source§

fn clone(&self) -> Delimiter

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
1.29.0 · Source§

impl Debug for Delimiter

Source§

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

Formats the value using the given formatter. Read more
1.29.0 · Source§

impl PartialEq for Delimiter

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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

Trait Implementations§

1.29.0 · Source§

impl Clone for Delimiter

Source§

fn clone(&self) -> Delimiter

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
1.29.0 · Source§

impl Debug for Delimiter

Source§

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

Formats the value using the given formatter. Read more
1.29.0 · Source§

impl PartialEq for Delimiter

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
1.29.0 · Source§

impl Copy for Delimiter

1.29.0 · Source§

impl Eq for Delimiter

1.29.0 · Source§

impl StructuralPartialEq for Delimiter

Auto Trait Implementations§

§

impl Freeze for Delimiter

§

impl RefUnwindSafe for Delimiter

§

impl Send for Delimiter

§

impl Sync for Delimiter

§

impl Unpin for Delimiter

§

impl UnwindSafe for Delimiter

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/proc_macro/enum.EscapeError.html │ │ │ @@ -46,16 +46,16 @@ │ │ │
§

UnicodeEscapeInByte

Unicode escape code in byte literal.

│ │ │
§

NonAsciiCharInByte

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

│ │ │
§

NulInCStr

§

UnskippedWhitespaceWarning

After a line ending with ’', the next line contains whitespace │ │ │ characters that are not skipped.

│ │ │
§

MultipleSkippedLinesWarning

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

│ │ │

Auto Trait Implementations§

§

impl Freeze for EscapeError

§

impl RefUnwindSafe for EscapeError

§

impl Send for EscapeError

§

impl Sync for EscapeError

§

impl Unpin for EscapeError

§

impl UnwindSafe for EscapeError

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/proc_macro/enum.Level.html │ │ │ @@ -6,18 +6,18 @@ │ │ │ }
🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)
Expand description

An enum representing a diagnostic level.

│ │ │

Variants (Non-exhaustive)§

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.
§

Error

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)

An error.

│ │ │
§

Warning

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)

A warning.

│ │ │
§

Note

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)

A note.

│ │ │
§

Help

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)

A help message.

│ │ │

Trait Implementations§

Source§

impl Clone for Level

Source§

fn clone(&self) -> Level

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Level

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Copy for Level

Auto Trait Implementations§

§

impl Freeze for Level

§

impl RefUnwindSafe for Level

§

impl Send for Level

§

impl Sync for Level

§

impl Unpin for Level

§

impl UnwindSafe for Level

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/proc_macro/enum.Spacing.html │ │ │ @@ -15,21 +15,21 @@ │ │ │ │ │ │

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

│ │ │
§1.29.0

Alone

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

│ │ │

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

│ │ │ -

Trait Implementations§

1.29.0 · Source§

impl Clone for Spacing

Source§

fn clone(&self) -> Spacing

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
1.29.0 · Source§

impl Debug for Spacing

Source§

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

Formats the value using the given formatter. Read more
1.29.0 · Source§

impl PartialEq for Spacing

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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

Trait Implementations§

1.29.0 · Source§

impl Clone for Spacing

Source§

fn clone(&self) -> Spacing

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
1.29.0 · Source§

impl Debug for Spacing

Source§

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

Formats the value using the given formatter. Read more
1.29.0 · Source§

impl PartialEq for Spacing

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
1.29.0 · Source§

impl Copy for Spacing

1.29.0 · Source§

impl Eq for Spacing

1.29.0 · Source§

impl StructuralPartialEq for Spacing

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/proc_macro/enum.TokenTree.html │ │ │ @@ -21,23 +21,23 @@ │ │ │

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

│ │ │ -
Source§

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

Formats the value using the given formatter. Read more
1.30.0 · Source§

impl Extend<TokenTree> for TokenStream

Source§

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

Extends a collection with the contents of an iterator. Read more
Source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one #72631)
Extends a collection with exactly one element.
Source§

fn extend_reserve(&mut self, additional: usize)

🔬This 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 · Source§

impl From<Group> for TokenTree

Source§

fn from(g: Group) -> TokenTree

Converts to this type from the input type.
1.29.0 · Source§

impl From<Ident> for TokenTree

Source§

fn from(g: Ident) -> TokenTree

Converts to this type from the input type.
1.29.0 · Source§

impl From<Literal> for TokenTree

Source§

fn from(g: Literal) -> TokenTree

Converts to this type from the input type.
1.29.0 · Source§

impl From<Punct> for TokenTree

Source§

fn from(g: Punct) -> TokenTree

Converts to this type from the input type.
1.29.0 · Source§

impl From<TokenTree> for TokenStream

Creates a token stream containing a single token tree.

│ │ │ +
Source§

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

Formats the value using the given formatter. Read more
1.30.0 · Source§

impl Extend<TokenTree> for TokenStream

Source§

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

Extends a collection with the contents of an iterator. Read more
Source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one #72631)
Extends a collection with exactly one element.
Source§

fn extend_reserve(&mut self, additional: usize)

🔬This 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 · Source§

impl From<Group> for TokenTree

Source§

fn from(g: Group) -> TokenTree

Converts to this type from the input type.
1.29.0 · Source§

impl From<Ident> for TokenTree

Source§

fn from(g: Ident) -> TokenTree

Converts to this type from the input type.
1.29.0 · Source§

impl From<Literal> for TokenTree

Source§

fn from(g: Literal) -> TokenTree

Converts to this type from the input type.
1.29.0 · Source§

impl From<Punct> for TokenTree

Source§

fn from(g: Punct) -> TokenTree

Converts to this type from the input type.
1.29.0 · Source§

impl From<TokenTree> for TokenStream

Creates a token stream containing a single token tree.

│ │ │
Source§

fn from(tree: TokenTree) -> TokenStream

Converts to this type from the input type.
1.29.0 · Source§

impl FromIterator<TokenTree> for TokenStream

Collects a number of token trees into a single stream.

│ │ │
Source§

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

Creates a value from an iterator. Read more
Source§

impl ToTokens for TokenTree

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Write self to the given TokenStream. Read more
Source§

fn into_token_stream(self) -> TokenStream

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
Source§

fn to_token_stream(&self) -> TokenStream

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
1.29.0 · Source§

impl !Send for TokenTree

1.29.0 · Source§

impl !Sync for TokenTree

Auto Trait Implementations§

§

impl Freeze for TokenTree

§

impl RefUnwindSafe for TokenTree

§

impl Unpin for TokenTree

§

impl UnwindSafe for TokenTree

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/proc_macro/fn.is_available.html │ │ │ @@ -1,8 +1,8 @@ │ │ │ -is_available in proc_macro - Rust

Function is_available

1.57.0 · Source
pub fn is_available() -> bool
Expand description

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

Function is_available

1.57.0 · Source
pub fn is_available() -> bool
Expand description

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

│ │ │

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

│ │ │

With consideration for Rust libraries that are designed to support both │ │ │ macro and non-macro use cases, proc_macro::is_available() provides a │ │ ├── ./usr/share/doc/rust-doc/html/proc_macro/struct.Diagnostic.html │ │ │ @@ -19,26 +19,26 @@ │ │ │

Source

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

🔬This 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.

│ │ │
Source

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

🔬This 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.

│ │ │
Source

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

🔬This 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.

│ │ │
Source

pub fn level(&self) -> Level

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Returns the diagnostic level for self.

│ │ │
Source

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

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Sets the level in self to level.

│ │ │ -
Source

pub fn message(&self) -> &str

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Returns the message in self.

│ │ │ +
Source

pub fn message(&self) -> &str

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Returns the message in self.

│ │ │
Source

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

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Sets the message in self to message.

│ │ │
Source

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

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Returns the Spans in self.

│ │ │
Source

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

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Sets the Spans in self to spans.

│ │ │
Source

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

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Returns an iterator over the children diagnostics of self.

│ │ │
Source

pub fn emit(self)

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Emit the diagnostic.

│ │ │

Trait Implementations§

Source§

impl Clone for Diagnostic

Source§

fn clone(&self) -> Diagnostic

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Diagnostic

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/proc_macro/struct.ExpandError.html │ │ │ @@ -1,12 +1,12 @@ │ │ │ ExpandError in proc_macro - Rust

Struct ExpandError

Source
#[non_exhaustive]
pub struct ExpandError;
🔬This is a nightly-only experimental API. (proc_macro_expand #90765)
Expand description

Error returned from TokenStream::expand_expr.

│ │ │ -

Trait Implementations§

Source§

impl Debug for ExpandError

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Display for ExpandError

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Error for ExpandError

1.30.0 · Source§

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

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

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

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

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

🔬This is a nightly-only experimental API. (error_generic_member_access #99301)
Provides type-based access to context intended for error reports. Read more
Source§

impl !Send for ExpandError

Source§

impl !Sync for ExpandError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ +

Trait Implementations§

Source§

impl Debug for ExpandError

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Display for ExpandError

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Error for ExpandError

1.30.0 · Source§

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

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

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

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

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

🔬This is a nightly-only experimental API. (error_generic_member_access #99301)
Provides type-based access to context intended for error reports. Read more
Source§

impl !Send for ExpandError

Source§

impl !Sync for ExpandError

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

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

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ ├── ./usr/share/doc/rust-doc/html/proc_macro/struct.Group.html │ │ │ @@ -22,19 +22,19 @@ │ │ │ tokens at the level of the Group.

│ │ │

Trait Implementations§

1.29.0 · Source§

impl Clone for Group

Source§

fn clone(&self) -> Group

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
1.29.0 · Source§

impl Debug for Group

Source§

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

Formats the value using the given formatter. Read more
1.29.0 · Source§

impl Display for Group

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

│ │ │
Source§

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

Formats the value using the given formatter. Read more
1.29.0 · Source§

impl From<Group> for TokenTree

Source§

fn from(g: Group) -> TokenTree

Converts to this type from the input type.
Source§

impl ToTokens for Group

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Write self to the given TokenStream. Read more
Source§

fn to_token_stream(&self) -> TokenStream

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
1.29.0 · Source§

impl !Send for Group

1.29.0 · Source§

impl !Sync for Group

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/proc_macro/struct.Ident.html │ │ │ @@ -1,40 +1,40 @@ │ │ │ Ident in proc_macro - Rust

Struct Ident

1.29.0 · Source
pub struct Ident(/* private fields */);
Expand description

An identifier (ident).

│ │ │ -

Implementations§

Source§

impl Ident

1.29.0 · Source

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

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

Implementations§

Source§

impl Ident

1.29.0 · Source

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

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

│ │ │

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

│ │ │

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

│ │ │

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

│ │ │

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

│ │ │ -
1.47.0 · Source

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

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

1.47.0 · Source

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

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

│ │ │
1.29.0 · Source

pub fn span(&self) -> Span

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

│ │ │
1.29.0 · Source

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

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

│ │ │

Trait Implementations§

1.29.0 · Source§

impl Clone for Ident

Source§

fn clone(&self) -> Ident

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
1.29.0 · Source§

impl Debug for Ident

Source§

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

Formats the value using the given formatter. Read more
1.29.0 · Source§

impl Display for Ident

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

│ │ │
Source§

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

Formats the value using the given formatter. Read more
1.29.0 · Source§

impl From<Ident> for TokenTree

Source§

fn from(g: Ident) -> TokenTree

Converts to this type from the input type.
Source§

impl ToTokens for Ident

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Write self to the given TokenStream. Read more
Source§

fn to_token_stream(&self) -> TokenStream

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more

Auto Trait Implementations§

§

impl Freeze for Ident

§

impl RefUnwindSafe for Ident

§

impl !Send for Ident

§

impl !Sync for Ident

§

impl Unpin for Ident

§

impl UnwindSafe for Ident

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/proc_macro/struct.LexError.html │ │ │ @@ -1,12 +1,12 @@ │ │ │ LexError in proc_macro - Rust

Struct LexError

1.15.0 · Source
#[non_exhaustive]
pub struct LexError;
Expand description

Error returned from TokenStream::from_str.

│ │ │ -

Trait Implementations§

1.15.0 · Source§

impl Debug for LexError

Source§

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

Formats the value using the given formatter. Read more
1.44.0 · Source§

impl Display for LexError

Source§

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

Formats the value using the given formatter. Read more
1.44.0 · Source§

impl Error for LexError

1.30.0 · Source§

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

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

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

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

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

🔬This 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 · Source§

impl !Send for LexError

1.15.0 · Source§

impl !Sync for LexError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ +

Trait Implementations§

1.15.0 · Source§

impl Debug for LexError

Source§

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

Formats the value using the given formatter. Read more
1.44.0 · Source§

impl Display for LexError

Source§

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

Formats the value using the given formatter. Read more
1.44.0 · Source§

impl Error for LexError

1.30.0 · Source§

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

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

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

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

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

🔬This 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 · Source§

impl !Send for LexError

1.15.0 · Source§

impl !Sync for LexError

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

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

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ ├── ./usr/share/doc/rust-doc/html/proc_macro/struct.Literal.html │ │ │ @@ -1,321 +1,321 @@ │ │ │ Literal in proc_macro - Rust

Struct Literal

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

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

│ │ │ -

Implementations§

Source§

impl Literal

1.29.0 · Source

pub fn u8_suffixed(n: u8) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │ +

Implementations§

Source§

impl Literal

1.29.0 · Source

pub fn u8_suffixed(n: u8) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn u16_suffixed(n: u16) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn u16_suffixed(n: u16) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn u32_suffixed(n: u32) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn u32_suffixed(n: u32) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn u64_suffixed(n: u64) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn u64_suffixed(n: u64) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn u128_suffixed(n: u128) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn u128_suffixed(n: u128) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn usize_suffixed(n: usize) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn usize_suffixed(n: usize) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn i8_suffixed(n: i8) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn i8_suffixed(n: i8) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn i16_suffixed(n: i16) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn i16_suffixed(n: i16) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn i32_suffixed(n: i32) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn i32_suffixed(n: i32) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn i64_suffixed(n: i64) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn i64_suffixed(n: i64) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn i128_suffixed(n: i128) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn i128_suffixed(n: i128) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn isize_suffixed(n: isize) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn isize_suffixed(n: isize) -> Literal

Creates a new suffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn u8_unsuffixed(n: u8) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn u8_unsuffixed(n: u8) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn u16_unsuffixed(n: u16) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn u16_unsuffixed(n: u16) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn u32_unsuffixed(n: u32) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn u32_unsuffixed(n: u32) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn u64_unsuffixed(n: u64) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn u64_unsuffixed(n: u64) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn u128_unsuffixed(n: u128) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn u128_unsuffixed(n: u128) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn usize_unsuffixed(n: usize) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn usize_unsuffixed(n: usize) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn i8_unsuffixed(n: i8) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn i8_unsuffixed(n: i8) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn i16_unsuffixed(n: i16) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn i16_unsuffixed(n: i16) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn i32_unsuffixed(n: i32) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn i32_unsuffixed(n: i32) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn i64_unsuffixed(n: i64) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn i64_unsuffixed(n: i64) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn i128_unsuffixed(n: i128) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn i128_unsuffixed(n: i128) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn isize_unsuffixed(n: isize) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │ +
1.29.0 · Source

pub fn isize_unsuffixed(n: isize) -> Literal

Creates a new unsuffixed integer literal with the specified value.

│ │ │

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn f32_unsuffixed(n: f32) -> Literal

Creates a new unsuffixed floating-point literal.

│ │ │ +
1.29.0 · Source

pub fn f32_unsuffixed(n: f32) -> Literal

Creates a new unsuffixed floating-point literal.

│ │ │

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

│ │ │
§Panics
│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn f32_suffixed(n: f32) -> Literal

Creates a new suffixed floating-point literal.

│ │ │ +
1.29.0 · Source

pub fn f32_suffixed(n: f32) -> Literal

Creates a new suffixed floating-point literal.

│ │ │

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

│ │ │
§Panics
│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn f64_unsuffixed(n: f64) -> Literal

Creates a new unsuffixed floating-point literal.

│ │ │ +
1.29.0 · Source

pub fn f64_unsuffixed(n: f64) -> Literal

Creates a new unsuffixed floating-point literal.

│ │ │

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

│ │ │
§Panics
│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn f64_suffixed(n: f64) -> Literal

Creates a new suffixed floating-point literal.

│ │ │ +
1.29.0 · Source

pub fn f64_suffixed(n: f64) -> Literal

Creates a new suffixed floating-point literal.

│ │ │

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

│ │ │
§Panics
│ │ │

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

│ │ │ -
1.29.0 · Source

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

String literal.

│ │ │ -
1.29.0 · Source

pub fn character(ch: char) -> Literal

Character literal.

│ │ │ -
1.79.0 · Source

pub fn byte_character(byte: u8) -> Literal

Byte character literal.

│ │ │ -
1.29.0 · Source

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

Byte string literal.

│ │ │ +
1.29.0 · Source

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

String literal.

│ │ │ +
1.29.0 · Source

pub fn character(ch: char) -> Literal

Character literal.

│ │ │ +
1.79.0 · Source

pub fn byte_character(byte: u8) -> Literal

Byte character literal.

│ │ │ +
1.29.0 · Source

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

Byte string literal.

│ │ │
1.79.0 · Source

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

C string literal.

│ │ │
1.29.0 · Source

pub fn span(&self) -> Span

Returns the span encompassing this literal.

│ │ │
1.29.0 · Source

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

Configures the span associated for this literal.

│ │ │ -
Source

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

🔬This is a nightly-only experimental API. (proc_macro_span #54725)

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

Source

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

🔬This is a nightly-only experimental API. (proc_macro_span #54725)

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

│ │ │
Source

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

🔬This 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.

│ │ │ -
Source

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

🔬This 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 │ │ │ +

Source

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

🔬This 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 │ │ │ literal.

│ │ │ -
Source

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

🔬This 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 │ │ │ +

Source

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

🔬This 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 │ │ │ literal.

│ │ │

Trait Implementations§

1.29.0 · Source§

impl Clone for Literal

Source§

fn clone(&self) -> Literal

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
1.29.0 · Source§

impl Debug for Literal

Source§

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

Formats the value using the given formatter. Read more
1.29.0 · Source§

impl Display for Literal

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

│ │ │
Source§

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

Formats the value using the given formatter. Read more
1.29.0 · Source§

impl From<Literal> for TokenTree

Source§

fn from(g: Literal) -> TokenTree

Converts to this type from the input type.
1.54.0 · Source§

impl FromStr for Literal

Parse a single literal from its stringified representation.

│ │ │

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

│ │ │

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

│ │ │

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

│ │ │ -
Source§

type Err = LexError

The associated error which can be returned from parsing.
Source§

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

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

impl ToTokens for Literal

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Write self to the given TokenStream. Read more
Source§

fn to_token_stream(&self) -> TokenStream

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
Source§

fn into_token_stream(self) -> TokenStream
where │ │ │ +
Source§

type Err = LexError

The associated error which can be returned from parsing.
Source§

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

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

Source§

impl ToTokens for Literal

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Write self to the given TokenStream. Read more
Source§

fn to_token_stream(&self) -> TokenStream

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/proc_macro/struct.Punct.html │ │ │ @@ -1,33 +1,33 @@ │ │ │ Punct in proc_macro - Rust

Struct Punct

1.29.0 · Source
pub struct Punct(/* private fields */);
Expand description

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

│ │ │

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

│ │ │ -

Implementations§

Source§

impl Punct

1.29.0 · Source

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

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

Implementations§

Source§

impl Punct

1.29.0 · Source

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

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

│ │ │

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

│ │ │ -
1.29.0 · Source

pub fn as_char(&self) -> char

Returns the value of this punctuation character as char.

│ │ │ +
1.29.0 · Source

pub fn as_char(&self) -> char

Returns the value of this punctuation character as char.

│ │ │
1.29.0 · Source

pub fn spacing(&self) -> Spacing

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

│ │ │
1.29.0 · Source

pub fn span(&self) -> Span

Returns the span for this punctuation character.

│ │ │
1.29.0 · Source

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

Configure the span for this punctuation character.

│ │ │

Trait Implementations§

1.29.0 · Source§

impl Clone for Punct

Source§

fn clone(&self) -> Punct

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
1.29.0 · Source§

impl Debug for Punct

Source§

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

Formats the value using the given formatter. Read more
1.29.0 · Source§

impl Display for Punct

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

│ │ │ -
Source§

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

Formats the value using the given formatter. Read more
1.29.0 · Source§

impl From<Punct> for TokenTree

Source§

fn from(g: Punct) -> TokenTree

Converts to this type from the input type.
1.52.0 · Source§

impl PartialEq<Punct> for char

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, │ │ │ -and should not be overridden without very good reason.
1.50.0 · Source§

impl PartialEq<char> for Punct

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, │ │ │ +
Source§

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

Formats the value using the given formatter. Read more
1.29.0 · Source§

impl From<Punct> for TokenTree

Source§

fn from(g: Punct) -> TokenTree

Converts to this type from the input type.
1.52.0 · Source§

impl PartialEq<Punct> for char

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, │ │ │ +and should not be overridden without very good reason.
1.50.0 · Source§

impl PartialEq<char> for Punct

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl ToTokens for Punct

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Write self to the given TokenStream. Read more
Source§

fn to_token_stream(&self) -> TokenStream

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
1.29.0 · Source§

impl !Send for Punct

1.29.0 · Source§

impl !Sync for Punct

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/proc_macro/struct.Span.html │ │ │ @@ -9,34 +9,34 @@ │ │ │ call site (everything else). │ │ │ The span location is taken from the call-site.

│ │ │
Source

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

🔬This is a nightly-only experimental API. (proc_macro_span #54725)

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

│ │ │
Source

pub fn source(&self) -> Span

🔬This is a nightly-only experimental API. (proc_macro_span #54725)

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

│ │ │ -
Source

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

🔬This is a nightly-only experimental API. (proc_macro_span #54725)

Returns the span’s byte position range in the source file.

│ │ │ +
Source

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

🔬This is a nightly-only experimental API. (proc_macro_span #54725)

Returns the span’s byte position range in the source file.

│ │ │
1.88.0 · Source

pub fn start(&self) -> Span

Creates an empty span pointing to directly before this span.

│ │ │
1.88.0 · Source

pub fn end(&self) -> Span

Creates an empty span pointing to directly after this span.

│ │ │ -
1.88.0 · Source

pub fn line(&self) -> usize

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

│ │ │ +
1.88.0 · Source

pub fn line(&self) -> usize

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

│ │ │

To obtain the line of the span’s end, use span.end().line().

│ │ │ -
1.88.0 · Source

pub fn column(&self) -> usize

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

│ │ │ +
1.88.0 · Source

pub fn column(&self) -> usize

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

│ │ │

To obtain the column of the span’s end, use span.end().column().

│ │ │
1.88.0 · Source

pub fn file(&self) -> String

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

│ │ │

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

│ │ │ -
1.88.0 · Source

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

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

│ │ │ +
1.88.0 · Source

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

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

│ │ │

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

│ │ │

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

│ │ │
Source

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

🔬This is a nightly-only experimental API. (proc_macro_span #54725)

Creates a new span encompassing self and other.

│ │ │

Returns None if self and other are from different files.

│ │ │
1.45.0 · Source

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

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

│ │ │
1.45.0 · Source

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

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

│ │ │ -
Source

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

🔬This is a nightly-only experimental API. (proc_macro_span #54725)

Compares two spans to see if they’re equal.

│ │ │ +
Source

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

🔬This is a nightly-only experimental API. (proc_macro_span #54725)

Compares two spans to see if they’re equal.

│ │ │
1.66.0 · Source

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

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

│ │ │

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

│ │ │
Source

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

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Creates a new Diagnostic with the given message at the span │ │ │ @@ -46,18 +46,18 @@ │ │ │

Source

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

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)

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

│ │ │
Source

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

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)

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

│ │ │

Trait Implementations§

1.29.0 · Source§

impl Clone for Span

Source§

fn clone(&self) -> Span

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
1.29.0 · Source§

impl Debug for Span

Prints a span in a form convenient for debugging.

│ │ │
Source§

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

Formats the value using the given formatter. Read more
Source§

impl MultiSpan for Span

Source§

fn into_spans(self) -> Vec<Span>

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)
Converts self into a Vec<Span>.
1.29.0 · Source§

impl Copy for Span

1.29.0 · Source§

impl !Send for Span

1.29.0 · Source§

impl !Sync for Span

Auto Trait Implementations§

§

impl Freeze for Span

§

impl RefUnwindSafe for Span

§

impl Unpin for Span

§

impl UnwindSafe for Span

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/proc_macro/struct.TokenStream.html │ │ │ @@ -1,15 +1,15 @@ │ │ │ TokenStream in proc_macro - Rust

Struct TokenStream

1.15.0 · Source
pub struct TokenStream(/* private fields */);
Expand description

The main type provided by this crate, representing an abstract stream of │ │ │ tokens, or, more specifically, a sequence of token trees. │ │ │ The type provides interfaces for iterating over those token trees and, conversely, │ │ │ collecting a number of token trees into one stream.

│ │ │

This is both the input and output of #[proc_macro], #[proc_macro_attribute] │ │ │ and #[proc_macro_derive] definitions.

│ │ │

Implementations§

Source§

impl TokenStream

1.29.0 · Source

pub fn new() -> TokenStream

Returns an empty TokenStream containing no token trees.

│ │ │ -
1.29.0 · Source

pub fn is_empty(&self) -> bool

Checks if this TokenStream is empty.

│ │ │ +
1.29.0 · Source

pub fn is_empty(&self) -> bool

Checks if this TokenStream is empty.

│ │ │
Source

pub fn expand_expr(&self) -> Result<TokenStream, ExpandError>

🔬This is a nightly-only experimental API. (proc_macro_expand #90765)

Parses this TokenStream as an expression and attempts to expand any │ │ │ macros within it. Returns the expanded TokenStream.

│ │ │

Currently only expressions expanding to literals will succeed, although │ │ │ this may be relaxed in the future.

│ │ │

NOTE: In error conditions, expand_expr may leave macros unexpanded, │ │ │ report an error, failing compilation, and/or return an Err(..). The │ │ │ specific behavior for any error condition, and what conditions are │ │ │ @@ -21,31 +21,31 @@ │ │ │

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

│ │ │ -
Source§

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

Formats the value using the given formatter. Read more
1.30.0 · Source§

impl Extend<TokenStream> for TokenStream

Source§

fn extend<I: IntoIterator<Item = TokenStream>>(&mut self, streams: I)

Extends a collection with the contents of an iterator. Read more
Source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one #72631)
Extends a collection with exactly one element.
Source§

fn extend_reserve(&mut self, additional: usize)

🔬This 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 · Source§

impl Extend<TokenTree> for TokenStream

Source§

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

Extends a collection with the contents of an iterator. Read more
Source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one #72631)
Extends a collection with exactly one element.
Source§

fn extend_reserve(&mut self, additional: usize)

🔬This 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 · Source§

impl From<TokenTree> for TokenStream

Creates a token stream containing a single token tree.

│ │ │ +
Source§

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

Formats the value using the given formatter. Read more
1.30.0 · Source§

impl Extend<TokenStream> for TokenStream

Source§

fn extend<I: IntoIterator<Item = TokenStream>>(&mut self, streams: I)

Extends a collection with the contents of an iterator. Read more
Source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one #72631)
Extends a collection with exactly one element.
Source§

fn extend_reserve(&mut self, additional: usize)

🔬This 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 · Source§

impl Extend<TokenTree> for TokenStream

Source§

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

Extends a collection with the contents of an iterator. Read more
Source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one #72631)
Extends a collection with exactly one element.
Source§

fn extend_reserve(&mut self, additional: usize)

🔬This 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 · Source§

impl From<TokenTree> for TokenStream

Creates a token stream containing a single token tree.

│ │ │
Source§

fn from(tree: TokenTree) -> TokenStream

Converts to this type from the input type.
1.15.0 · Source§

impl FromIterator<TokenStream> for TokenStream

A “flattening” operation on token streams, collects token trees │ │ │ from multiple token streams into a single stream.

│ │ │
Source§

fn from_iter<I: IntoIterator<Item = TokenStream>>(streams: I) -> Self

Creates a value from an iterator. Read more
1.29.0 · Source§

impl FromIterator<TokenTree> for TokenStream

Collects a number of token trees into a single stream.

│ │ │
Source§

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

Creates a value from an iterator. Read more
1.15.0 · Source§

impl FromStr for TokenStream

Attempts to break the string into tokens and parse those tokens into a token stream. │ │ │ May fail for a number of reasons, for example, if the string contains unbalanced delimiters │ │ │ or characters not existing in the language. │ │ │ All tokens in the parsed stream get Span::call_site() spans.

│ │ │

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

│ │ │ -
Source§

type Err = LexError

The associated error which can be returned from parsing.
Source§

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

Parses a string s to return a value of this type. Read more
1.29.0 · Source§

impl IntoIterator for TokenStream

Source§

type Item = TokenTree

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> IntoIter

Creates an iterator from a value. Read more
Source§

impl ToTokens for TokenStream

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Write self to the given TokenStream. Read more
Source§

fn into_token_stream(self) -> TokenStream

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
Source§

fn to_token_stream(&self) -> TokenStream

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
1.15.0 · Source§

impl !Send for TokenStream

1.15.0 · Source§

impl !Sync for TokenStream

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ +
Source§

type Err = LexError

The associated error which can be returned from parsing.
Source§

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

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

1.29.0 · Source§

impl IntoIterator for TokenStream

Source§

type Item = TokenTree

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> IntoIter

Creates an iterator from a value. Read more
Source§

impl ToTokens for TokenStream

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Write self to the given TokenStream. Read more
Source§

fn into_token_stream(self) -> TokenStream

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
Source§

fn to_token_stream(&self) -> TokenStream

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Convert self directly into a TokenStream object. Read more
1.15.0 · Source§

impl !Send for TokenStream

1.15.0 · Source§

impl !Sync for TokenStream

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/proc_macro/token_stream/struct.IntoIter.html │ │ │ @@ -1,15 +1,15 @@ │ │ │ IntoIter in proc_macro::token_stream - Rust

Struct IntoIter

1.29.0 · Source
pub struct IntoIter(/* private fields */);
Expand description

An iterator over TokenStream’s TokenTrees. │ │ │ The iteration is “shallow”, e.g., the iterator doesn’t recurse into delimited groups, │ │ │ and returns whole groups as token trees.

│ │ │ -

Trait Implementations§

1.29.0 · Source§

impl Clone for IntoIter

Source§

fn clone(&self) -> IntoIter

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
1.29.0 · Source§

impl Iterator for IntoIter

Source§

type Item = TokenTree

The type of the elements being iterated over.
Source§

fn next(&mut self) -> Option<TokenTree>

Advances the iterator and returns the next value. Read more
Source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
Source§

fn count(self) -> usize

Consumes the iterator, counting the number of iterations and returning it. Read more
Source§

fn next_chunk<const N: usize>( │ │ │ +

Trait Implementations§

1.29.0 · Source§

impl Clone for IntoIter

Source§

fn clone(&self) -> IntoIter

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
1.29.0 · Source§

impl Iterator for IntoIter

Source§

type Item = TokenTree

The type of the elements being iterated over.
Source§

fn next(&mut self) -> Option<TokenTree>

Advances the iterator and returns the next value. Read more
Source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
Source§

fn count(self) -> usize

Consumes the iterator, counting the number of iterations and returning it. Read more
Source§

fn next_chunk<const N: usize>( │ │ │ &mut self, │ │ │ -) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where │ │ │ +) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where │ │ │ Self: Sized,

🔬This 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 · Source§

fn last(self) -> Option<Self::Item>
where │ │ │ - Self: Sized,

Consumes the iterator, returning the last element. Read more
Source§

fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

🔬This is a nightly-only experimental API. (iter_advance_by #77404)
Advances the iterator by n elements. Read more
1.0.0 · Source§

fn nth(&mut self, n: usize) -> Option<Self::Item>

Returns the nth element of the iterator. Read more
1.28.0 · Source§

fn step_by(self, step: usize) -> StepBy<Self>
where │ │ │ + Self: Sized,

Consumes the iterator, returning the last element. Read more
Source§

fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

🔬This is a nightly-only experimental API. (iter_advance_by #77404)
Advances the iterator by n elements. Read more
1.0.0 · Source§

fn nth(&mut self, n: usize) -> Option<Self::Item>

Returns the nth element of the iterator. Read more
1.28.0 · Source§

fn step_by(self, step: usize) -> StepBy<Self>
where │ │ │ Self: Sized,

Creates an iterator starting at the same point, but stepping by │ │ │ the given amount at each iteration. Read more
1.0.0 · Source§

fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter>
where │ │ │ Self: Sized, │ │ │ U: IntoIterator<Item = Self::Item>,

Takes two iterators and creates a new iterator over both in sequence. Read more
1.0.0 · Source§

fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter>
where │ │ │ Self: Sized, │ │ │ U: IntoIterator,

‘Zips up’ two iterators into a single iterator of pairs. Read more
Source§

fn intersperse(self, separator: Self::Item) -> Intersperse<Self>
where │ │ │ Self: Sized, │ │ │ @@ -20,117 +20,117 @@ │ │ │ between adjacent items of the original iterator. Read more

1.0.0 · Source§

fn map<B, F>(self, f: F) -> Map<Self, F>
where │ │ │ Self: Sized, │ │ │ F: FnMut(Self::Item) -> B,

Takes a closure and creates an iterator which calls that closure on each │ │ │ element. Read more
1.21.0 · Source§

fn for_each<F>(self, f: F)
where │ │ │ Self: Sized, │ │ │ F: FnMut(Self::Item),

Calls a closure on each element of an iterator. Read more
1.0.0 · Source§

fn filter<P>(self, predicate: P) -> Filter<Self, P>
where │ │ │ Self: Sized, │ │ │ - P: FnMut(&Self::Item) -> bool,

Creates an iterator which uses a closure to determine if an element │ │ │ + P: FnMut(&Self::Item) -> bool,
Creates an iterator which uses a closure to determine if an element │ │ │ should be yielded. Read more
1.0.0 · Source§

fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F>
where │ │ │ Self: Sized, │ │ │ F: FnMut(Self::Item) -> Option<B>,

Creates an iterator that both filters and maps. Read more
1.0.0 · Source§

fn enumerate(self) -> Enumerate<Self>
where │ │ │ Self: Sized,

Creates an iterator which gives the current iteration count as well as │ │ │ the next value. Read more
1.0.0 · Source§

fn peekable(self) -> Peekable<Self>
where │ │ │ Self: Sized,

Creates an iterator which can use the peek and peek_mut methods │ │ │ to look at the next element of the iterator without consuming it. See │ │ │ their documentation for more information. Read more
1.0.0 · Source§

fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>
where │ │ │ Self: Sized, │ │ │ - P: FnMut(&Self::Item) -> bool,

Creates an iterator that skips elements based on a predicate. Read more
1.0.0 · Source§

fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
where │ │ │ + P: FnMut(&Self::Item) -> bool,

Creates an iterator that skips elements based on a predicate. Read more
1.0.0 · Source§

fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
where │ │ │ Self: Sized, │ │ │ - P: FnMut(&Self::Item) -> bool,

Creates an iterator that yields elements based on a predicate. Read more
1.57.0 · Source§

fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P>
where │ │ │ + P: FnMut(&Self::Item) -> bool,

Creates an iterator that yields elements based on a predicate. Read more
1.57.0 · Source§

fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P>
where │ │ │ Self: Sized, │ │ │ - P: FnMut(Self::Item) -> Option<B>,

Creates an iterator that both yields elements based on a predicate and maps. Read more
1.0.0 · Source§

fn skip(self, n: usize) -> Skip<Self>
where │ │ │ - Self: Sized,

Creates an iterator that skips the first n elements. Read more
1.0.0 · Source§

fn take(self, n: usize) -> Take<Self>
where │ │ │ + P: FnMut(Self::Item) -> Option<B>,

Creates an iterator that both yields elements based on a predicate and maps. Read more
1.0.0 · Source§

fn skip(self, n: usize) -> Skip<Self>
where │ │ │ + Self: Sized,

Creates an iterator that skips the first n elements. Read more
1.0.0 · Source§

fn take(self, n: usize) -> Take<Self>
where │ │ │ Self: Sized,

Creates an iterator that yields the first n elements, or fewer │ │ │ if the underlying iterator ends sooner. Read more
1.0.0 · Source§

fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F>
where │ │ │ Self: Sized, │ │ │ - F: FnMut(&mut St, Self::Item) -> Option<B>,

An iterator adapter which, like fold, holds internal state, but │ │ │ + F: FnMut(&mut St, Self::Item) -> Option<B>,
An iterator adapter which, like fold, holds internal state, but │ │ │ unlike fold, produces a new iterator. Read more
1.0.0 · Source§

fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>
where │ │ │ Self: Sized, │ │ │ U: IntoIterator, │ │ │ - F: FnMut(Self::Item) -> U,

Creates an iterator that works like map, but flattens nested structure. Read more
Source§

fn map_windows<F, R, const N: usize>(self, f: F) -> MapWindows<Self, F, N>
where │ │ │ + F: FnMut(Self::Item) -> U,

Creates an iterator that works like map, but flattens nested structure. Read more
Source§

fn map_windows<F, R, const N: usize>(self, f: F) -> MapWindows<Self, F, N>
where │ │ │ Self: Sized, │ │ │ - F: FnMut(&[Self::Item; N]) -> R,

🔬This is a nightly-only experimental API. (iter_map_windows #87155)
Calls the given function f for each contiguous window of size N over │ │ │ -self and returns an iterator over the outputs of f. Like slice::windows(), │ │ │ + F: FnMut(&[Self::Item; N]) -> R,
🔬This is a nightly-only experimental API. (iter_map_windows #87155)
Calls the given function f for each contiguous window of size N over │ │ │ +self and returns an iterator over the outputs of f. Like slice::windows(), │ │ │ the windows during mapping overlap as well. Read more
1.0.0 · Source§

fn fuse(self) -> Fuse<Self>
where │ │ │ Self: Sized,

Creates an iterator which ends after the first None. Read more
1.0.0 · Source§

fn inspect<F>(self, f: F) -> Inspect<Self, F>
where │ │ │ Self: Sized, │ │ │ F: FnMut(&Self::Item),

Does something with each element of an iterator, passing the value on. Read more
1.0.0 · Source§

fn by_ref(&mut self) -> &mut Self
where │ │ │ Self: Sized,

Creates a “by reference” adapter for this instance of Iterator. Read more
1.0.0 · Source§

fn collect<B>(self) -> B
where │ │ │ B: FromIterator<Self::Item>, │ │ │ - Self: Sized,

Transforms an iterator into a collection. Read more
Source§

fn collect_into<E>(self, collection: &mut E) -> &mut E
where │ │ │ + Self: Sized,

Transforms an iterator into a collection. Read more
Source§

fn collect_into<E>(self, collection: &mut E) -> &mut E
where │ │ │ E: Extend<Self::Item>, │ │ │ - Self: Sized,

🔬This 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 · Source§

fn partition<B, F>(self, f: F) -> (B, B)
where │ │ │ + Self: Sized,

🔬This 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 · Source§

fn partition<B, F>(self, f: F) -> (B, B)
where │ │ │ Self: Sized, │ │ │ B: Default + Extend<Self::Item>, │ │ │ - F: FnMut(&Self::Item) -> bool,

Consumes an iterator, creating two collections from it. Read more
Source§

fn is_partitioned<P>(self, predicate: P) -> bool
where │ │ │ + F: FnMut(&Self::Item) -> bool,

Consumes an iterator, creating two collections from it. Read more
Source§

fn is_partitioned<P>(self, predicate: P) -> bool
where │ │ │ Self: Sized, │ │ │ - P: FnMut(Self::Item) -> bool,

🔬This is a nightly-only experimental API. (iter_is_partitioned #62544)
Checks if the elements of this iterator are partitioned according to the given predicate, │ │ │ + P: FnMut(Self::Item) -> bool,
🔬This is a nightly-only experimental API. (iter_is_partitioned #62544)
Checks if the elements of this iterator are partitioned according to the given predicate, │ │ │ such that all those that return true precede all those that return false. Read more
1.27.0 · Source§

fn try_fold<B, F, R>(&mut self, init: B, f: F) -> R
where │ │ │ Self: Sized, │ │ │ F: FnMut(B, Self::Item) -> R, │ │ │ R: Try<Output = B>,

An iterator method that applies a function as long as it returns │ │ │ successfully, producing a single, final value. Read more
1.27.0 · Source§

fn try_for_each<F, R>(&mut self, f: F) -> R
where │ │ │ Self: Sized, │ │ │ F: FnMut(Self::Item) -> R, │ │ │ - R: Try<Output = ()>,

An iterator method that applies a fallible function to each item in the │ │ │ + R: Try<Output = ()>,
An iterator method that applies a fallible function to each item in the │ │ │ iterator, stopping at the first error and returning that error. Read more
1.0.0 · Source§

fn fold<B, F>(self, init: B, f: F) -> B
where │ │ │ Self: Sized, │ │ │ F: FnMut(B, Self::Item) -> B,

Folds every element into an accumulator by applying an operation, │ │ │ returning the final result. Read more
1.51.0 · Source§

fn reduce<F>(self, f: F) -> Option<Self::Item>
where │ │ │ Self: Sized, │ │ │ F: FnMut(Self::Item, Self::Item) -> Self::Item,

Reduces the elements to a single one, by repeatedly applying a reducing │ │ │ operation. Read more
Source§

fn try_reduce<R>( │ │ │ &mut self, │ │ │ f: impl FnMut(Self::Item, Self::Item) -> R, │ │ │ ) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryType
where │ │ │ Self: Sized, │ │ │ R: Try<Output = Self::Item>, │ │ │ <R as Try>::Residual: Residual<Option<Self::Item>>,

🔬This 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 │ │ │ -closure returns a failure, the failure is propagated back to the caller immediately. Read more
1.0.0 · Source§

fn all<F>(&mut self, f: F) -> bool
where │ │ │ +closure returns a failure, the failure is propagated back to the caller immediately. Read more

1.0.0 · Source§

fn all<F>(&mut self, f: F) -> bool
where │ │ │ Self: Sized, │ │ │ - F: FnMut(Self::Item) -> bool,

Tests if every element of the iterator matches a predicate. Read more
1.0.0 · Source§

fn any<F>(&mut self, f: F) -> bool
where │ │ │ + F: FnMut(Self::Item) -> bool,

Tests if every element of the iterator matches a predicate. Read more
1.0.0 · Source§

fn any<F>(&mut self, f: F) -> bool
where │ │ │ Self: Sized, │ │ │ - F: FnMut(Self::Item) -> bool,

Tests if any element of the iterator matches a predicate. Read more
1.0.0 · Source§

fn find<P>(&mut self, predicate: P) -> Option<Self::Item>
where │ │ │ + F: FnMut(Self::Item) -> bool,

Tests if any element of the iterator matches a predicate. Read more
1.0.0 · Source§

fn find<P>(&mut self, predicate: P) -> Option<Self::Item>
where │ │ │ Self: Sized, │ │ │ - P: FnMut(&Self::Item) -> bool,

Searches for an element of an iterator that satisfies a predicate. Read more
1.30.0 · Source§

fn find_map<B, F>(&mut self, f: F) -> Option<B>
where │ │ │ + P: FnMut(&Self::Item) -> bool,

Searches for an element of an iterator that satisfies a predicate. Read more
1.30.0 · Source§

fn find_map<B, F>(&mut self, f: F) -> Option<B>
where │ │ │ Self: Sized, │ │ │ F: FnMut(Self::Item) -> Option<B>,

Applies function to the elements of iterator and returns │ │ │ the first non-none result. Read more
Source§

fn try_find<R>( │ │ │ &mut self, │ │ │ f: impl FnMut(&Self::Item) -> R, │ │ │ ) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryType
where │ │ │ Self: Sized, │ │ │ - R: Try<Output = bool>, │ │ │ + R: Try<Output = bool>, │ │ │ <R as Try>::Residual: Residual<Option<Self::Item>>,

🔬This is a nightly-only experimental API. (try_find #63178)
Applies function to the elements of iterator and returns │ │ │ -the first true result or the first error. Read more
1.0.0 · Source§

fn position<P>(&mut self, predicate: P) -> Option<usize>
where │ │ │ +the first true result or the first error. Read more

1.0.0 · Source§

fn position<P>(&mut self, predicate: P) -> Option<usize>
where │ │ │ Self: Sized, │ │ │ - P: FnMut(Self::Item) -> bool,

Searches for an element in an iterator, returning its index. Read more
1.6.0 · Source§

fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>
where │ │ │ + P: FnMut(Self::Item) -> bool,

Searches for an element in an iterator, returning its index. Read more
1.6.0 · Source§

fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>
where │ │ │ B: Ord, │ │ │ Self: Sized, │ │ │ F: FnMut(&Self::Item) -> B,

Returns the element that gives the maximum value from the │ │ │ specified function. Read more
1.15.0 · Source§

fn max_by<F>(self, compare: F) -> Option<Self::Item>
where │ │ │ Self: Sized, │ │ │ F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Returns the element that gives the maximum value with respect to the │ │ │ specified comparison function. Read more
1.6.0 · Source§

fn min_by_key<B, F>(self, f: F) -> Option<Self::Item>
where │ │ │ B: Ord, │ │ │ Self: Sized, │ │ │ F: FnMut(&Self::Item) -> B,

Returns the element that gives the minimum value from the │ │ │ specified function. Read more
1.15.0 · Source§

fn min_by<F>(self, compare: F) -> Option<Self::Item>
where │ │ │ Self: Sized, │ │ │ F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Returns the element that gives the minimum value with respect to the │ │ │ -specified comparison function. Read more
1.0.0 · Source§

fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)
where │ │ │ +specified comparison function. Read more

1.0.0 · Source§

fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)
where │ │ │ FromA: Default + Extend<A>, │ │ │ FromB: Default + Extend<B>, │ │ │ - Self: Sized + Iterator<Item = (A, B)>,

Converts an iterator of pairs into a pair of containers. Read more
1.36.0 · Source§

fn copied<'a, T>(self) -> Copied<Self>
where │ │ │ + Self: Sized + Iterator<Item = (A, B)>,

Converts an iterator of pairs into a pair of containers. Read more
1.36.0 · Source§

fn copied<'a, T>(self) -> Copied<Self>
where │ │ │ T: 'a + Copy, │ │ │ - Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which copies all of its elements. Read more
1.0.0 · Source§

fn cloned<'a, T>(self) -> Cloned<Self>
where │ │ │ + Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which copies all of its elements. Read more
1.0.0 · Source§

fn cloned<'a, T>(self) -> Cloned<Self>
where │ │ │ T: 'a + Clone, │ │ │ - Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which clones all of its elements. Read more
1.0.0 · Source§

fn cycle(self) -> Cycle<Self>
where │ │ │ - Self: Sized + Clone,

Repeats an iterator endlessly. Read more
Source§

fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N>
where │ │ │ + Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which clones all of its elements. Read more
1.0.0 · Source§

fn cycle(self) -> Cycle<Self>
where │ │ │ + Self: Sized + Clone,

Repeats an iterator endlessly. Read more
Source§

fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N>
where │ │ │ Self: Sized,

🔬This 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 · Source§

fn sum<S>(self) -> S
where │ │ │ Self: Sized, │ │ │ S: Sum<Self::Item>,

Sums the elements of an iterator. Read more
1.11.0 · Source§

fn product<P>(self) -> P
where │ │ │ Self: Sized, │ │ │ P: Product<Self::Item>,

Iterates over the entire iterator, multiplying all the elements Read more
Source§

fn cmp_by<I, F>(self, other: I, cmp: F) -> Ordering
where │ │ │ Self: Sized, │ │ │ I: IntoIterator, │ │ │ @@ -141,55 +141,55 @@ │ │ │ Self: Sized,

Lexicographically compares the PartialOrd elements of │ │ │ this Iterator with those of another. The comparison works like short-circuit │ │ │ evaluation, returning a result without comparing the remaining elements. │ │ │ As soon as an order can be determined, the evaluation stops and a result is returned. Read more
Source§

fn partial_cmp_by<I, F>(self, other: I, partial_cmp: F) -> Option<Ordering>
where │ │ │ Self: Sized, │ │ │ I: IntoIterator, │ │ │ F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>,

🔬This is a nightly-only experimental API. (iter_order_by #64295)
Lexicographically compares the elements of this Iterator with those │ │ │ -of another with respect to the specified comparison function. Read more
1.5.0 · Source§

fn eq<I>(self, other: I) -> bool
where │ │ │ +of another with respect to the specified comparison function. Read more

1.5.0 · Source§

fn eq<I>(self, other: I) -> bool
where │ │ │ I: IntoIterator, │ │ │ Self::Item: PartialEq<<I as IntoIterator>::Item>, │ │ │ Self: Sized,

Determines if the elements of this Iterator are equal to those of │ │ │ -another. Read more
Source§

fn eq_by<I, F>(self, other: I, eq: F) -> bool
where │ │ │ +another. Read more

Source§

fn eq_by<I, F>(self, other: I, eq: F) -> bool
where │ │ │ Self: Sized, │ │ │ I: IntoIterator, │ │ │ - F: FnMut(Self::Item, <I as IntoIterator>::Item) -> bool,

🔬This is a nightly-only experimental API. (iter_order_by #64295)
Determines if the elements of this Iterator are equal to those of │ │ │ -another with respect to the specified equality function. Read more
1.5.0 · Source§

fn ne<I>(self, other: I) -> bool
where │ │ │ + F: FnMut(Self::Item, <I as IntoIterator>::Item) -> bool,

🔬This is a nightly-only experimental API. (iter_order_by #64295)
Determines if the elements of this Iterator are equal to those of │ │ │ +another with respect to the specified equality function. Read more
1.5.0 · Source§

fn ne<I>(self, other: I) -> bool
where │ │ │ I: IntoIterator, │ │ │ Self::Item: PartialEq<<I as IntoIterator>::Item>, │ │ │ Self: Sized,

Determines if the elements of this Iterator are not equal to those of │ │ │ -another. Read more
1.5.0 · Source§

fn lt<I>(self, other: I) -> bool
where │ │ │ +another. Read more

1.5.0 · Source§

fn lt<I>(self, other: I) -> bool
where │ │ │ I: IntoIterator, │ │ │ Self::Item: PartialOrd<<I as IntoIterator>::Item>, │ │ │ Self: Sized,

Determines if the elements of this Iterator are lexicographically │ │ │ -less than those of another. Read more
1.5.0 · Source§

fn le<I>(self, other: I) -> bool
where │ │ │ +less than those of another. Read more

1.5.0 · Source§

fn le<I>(self, other: I) -> bool
where │ │ │ I: IntoIterator, │ │ │ Self::Item: PartialOrd<<I as IntoIterator>::Item>, │ │ │ Self: Sized,

Determines if the elements of this Iterator are lexicographically │ │ │ -less or equal to those of another. Read more
1.5.0 · Source§

fn gt<I>(self, other: I) -> bool
where │ │ │ +less or equal to those of another. Read more

1.5.0 · Source§

fn gt<I>(self, other: I) -> bool
where │ │ │ I: IntoIterator, │ │ │ Self::Item: PartialOrd<<I as IntoIterator>::Item>, │ │ │ Self: Sized,

Determines if the elements of this Iterator are lexicographically │ │ │ -greater than those of another. Read more
1.5.0 · Source§

fn ge<I>(self, other: I) -> bool
where │ │ │ +greater than those of another. Read more

1.5.0 · Source§

fn ge<I>(self, other: I) -> bool
where │ │ │ I: IntoIterator, │ │ │ Self::Item: PartialOrd<<I as IntoIterator>::Item>, │ │ │ Self: Sized,

Determines if the elements of this Iterator are lexicographically │ │ │ -greater than or equal to those of another. Read more
1.82.0 · Source§

fn is_sorted_by<F>(self, compare: F) -> bool
where │ │ │ +greater than or equal to those of another. Read more

1.82.0 · Source§

fn is_sorted_by<F>(self, compare: F) -> bool
where │ │ │ Self: Sized, │ │ │ - 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 · Source§

fn is_sorted_by_key<F, K>(self, f: F) -> bool
where │ │ │ + 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 · Source§

fn is_sorted_by_key<F, K>(self, f: F) -> bool
where │ │ │ Self: Sized, │ │ │ F: FnMut(Self::Item) -> K, │ │ │ K: PartialOrd,

Checks if the elements of this iterator are sorted using the given key extraction │ │ │ function. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<I> IntoIterator for I
where │ │ │ I: Iterator,

Source§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
Source§

type IntoIter = I

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/proc_macro/tracked_env/fn.var.html │ │ │ @@ -1,6 +1,6 @@ │ │ │ -var in proc_macro::tracked_env - Rust

Function var

Source
pub fn var<K: AsRef<OsStr> + AsRef<str>>(key: K) -> Result<String, VarError>
🔬This is a nightly-only experimental API. (proc_macro_tracked_env #99515)
Expand description

Retrieve an environment variable and add it to build dependency info. │ │ │ +var in proc_macro::tracked_env - Rust

Function var

Source
pub fn var<K: AsRef<OsStr> + AsRef<str>>(key: K) -> Result<String, VarError>
🔬This is a nightly-only experimental API. (proc_macro_tracked_env #99515)
Expand description

Retrieve an environment variable and add it to build dependency info. │ │ │ The build system executing the compiler will know that the variable was accessed during │ │ │ compilation, and will be able to rerun the build when the value of that variable changes. │ │ │ Besides the dependency tracking this function should be equivalent to env::var from the │ │ │ standard library, except that the argument must be UTF-8.

│ │ │
│ │ ├── ./usr/share/doc/rust-doc/html/proc_macro/tracked_path/fn.path.html │ │ │ @@ -1,3 +1,3 @@ │ │ │ -path in proc_macro::tracked_path - Rust

Function path

Source
pub fn path<P: AsRef<str>>(path: P)
🔬This is a nightly-only experimental API. (track_path #99515)
Expand description

Track a file explicitly.

│ │ │ +path in proc_macro::tracked_path - Rust

Function path

Source
pub fn path<P: AsRef<str>>(path: P)
🔬This is a nightly-only experimental API. (track_path #99515)
Expand description

Track a file explicitly.

│ │ │

Commonly used for tracking asset preprocessing.

│ │ │
│ │ ├── ./usr/share/doc/rust-doc/html/proc_macro/trait.ToTokens.html │ │ │ @@ -37,8 +37,8 @@ │ │ │

Provided Methods§

Source

fn to_token_stream(&self) -> TokenStream

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)

Convert self directly into a TokenStream object.

│ │ │

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

│ │ │
Source

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)

Convert self directly into a TokenStream object.

│ │ │

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

│ │ │ -

Implementations on Foreign Types§

Source§

impl ToTokens for bool

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for char

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for f32

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for f64

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for i8

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for i16

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for i32

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for i64

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for i128

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for isize

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for str

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for u8

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for u16

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for u32

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for u64

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for u128

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for usize

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for CString

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for String

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for CStr

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

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

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

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

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

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

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

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

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

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

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

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

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)

Implementors§

│ │ │ +

Implementations on Foreign Types§

Source§

impl ToTokens for bool

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for char

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for f32

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for f64

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for i8

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for i16

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for i32

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for i64

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for i128

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for isize

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for str

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for u8

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for u16

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for u32

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for u64

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for u128

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for usize

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for CString

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for String

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

impl ToTokens for CStr

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

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

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

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

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

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

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

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

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

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

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)
Source§

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

Source§

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

🔬This is a nightly-only experimental API. (proc_macro_totokens #130977)

Implementors§

Source§

impl ToTokens for TokenTree

Source§

impl ToTokens for Group

Source§

impl ToTokens for Ident

Source§

impl ToTokens for Literal

Source§

impl ToTokens for Punct

Source§

impl ToTokens for TokenStream

│ │ ├── ./usr/share/doc/rust-doc/html/reference.html │ │ │ @@ -2,15 +2,15 @@ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ The Rust Reference has moved │ │ │ │ │ │ - │ │ │ + │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

Function benchmark

Source
pub fn benchmark<F>(
│ │ │      id: TestId,
│ │ │      desc: TestDesc,
│ │ │ -    monitor_ch: Sender<CompletedTest>,
│ │ │ -    nocapture: bool,
│ │ │ +    monitor_ch: Sender<CompletedTest>,
│ │ │ +    nocapture: bool,
│ │ │      f: F,
│ │ │  )
where │ │ │ - F: FnMut(&mut Bencher) -> Result<(), String>,
🔬This is a nightly-only experimental API. (test)
│ │ │ + F: FnMut(&mut Bencher) -> Result<(), String>,
🔬This is a nightly-only experimental API. (test)
│ │ ├── ./usr/share/doc/rust-doc/html/test/bench/fn.iter.html │ │ │ @@ -1,2 +1,2 @@ │ │ │ -iter in test::bench - Rust

Function iter

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

Function iter

Source
pub fn iter<T, F>(inner: &mut F) -> Summary
where │ │ │ F: FnMut() -> T,
🔬This is a nightly-only experimental API. (test)
│ │ ├── ./usr/share/doc/rust-doc/html/test/bench/fn.run_once.html │ │ │ @@ -1,2 +1,2 @@ │ │ │ -run_once in test::bench - Rust

Function run_once

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

Function run_once

Source
pub fn run_once<F>(f: F) -> Result<(), String>
where │ │ │ + F: FnMut(&mut Bencher) -> Result<(), String>,
🔬This is a nightly-only experimental API. (test)
│ │ ├── ./usr/share/doc/rust-doc/html/test/bench/struct.BenchSamples.html │ │ │ @@ -1,17 +1,17 @@ │ │ │ BenchSamples in test::bench - Rust

Struct BenchSamples

Source
pub struct BenchSamples {
│ │ │      pub ns_iter_summ: Summary,
│ │ │ -    pub mb_s: usize,
│ │ │ -}
🔬This is a nightly-only experimental API. (test)

Fields§

§ns_iter_summ: Summary
🔬This is a nightly-only experimental API. (test)
§mb_s: usize
🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for BenchSamples

Source§

fn clone(&self) -> BenchSamples

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for BenchSamples

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for BenchSamples

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, │ │ │ + pub mb_s: usize, │ │ │ +}
🔬This is a nightly-only experimental API. (test)

Fields§

§ns_iter_summ: Summary
🔬This is a nightly-only experimental API. (test)
§mb_s: usize
🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for BenchSamples

Source§

fn clone(&self) -> BenchSamples

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for BenchSamples

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for BenchSamples

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for BenchSamples

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/bench/struct.Bencher.html │ │ │ @@ -1,23 +1,23 @@ │ │ │ Bencher in test::bench - Rust

Struct Bencher

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

Manager of the benchmarking runs.

│ │ │

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

│ │ │ -

Fields§

§bytes: u64
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl Bencher

Source

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

Fields§

§bytes: u64
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl Bencher

Source

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

🔬This is a nightly-only experimental API. (test)

Callback for benchmark functions to run in their body.

│ │ │
Source

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

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for Bencher

Source§

fn clone(&self) -> Bencher

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for Bencher

Source§

fn clone(&self) -> Bencher

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/enum.ColorConfig.html │ │ │ @@ -1,18 +1,18 @@ │ │ │ ColorConfig in test - Rust

Enum ColorConfig

Source
pub enum ColorConfig {
│ │ │      AutoColor,
│ │ │      AlwaysColor,
│ │ │      NeverColor,
│ │ │  }
🔬This is a nightly-only experimental API. (test)
Expand description

Whether should console output be colored or not

│ │ │

Variants§

§

AutoColor

🔬This is a nightly-only experimental API. (test)
§

AlwaysColor

🔬This is a nightly-only experimental API. (test)
§

NeverColor

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for ColorConfig

Source§

fn clone(&self) -> ColorConfig

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ColorConfig

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for ColorConfig

Source§

fn default() -> ColorConfig

Returns the “default value” for a type. Read more
Source§

impl Copy for ColorConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/enum.NamePadding.html │ │ │ @@ -1,19 +1,19 @@ │ │ │ NamePadding in test - Rust

Enum NamePadding

Source
pub enum NamePadding {
│ │ │      PadNone,
│ │ │      PadOnRight,
│ │ │ -}
🔬This is a nightly-only experimental API. (test)

Variants§

§

PadNone

🔬This is a nightly-only experimental API. (test)
§

PadOnRight

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for NamePadding

Source§

fn clone(&self) -> NamePadding

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for NamePadding

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Hash for NamePadding

Source§

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

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

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

Variants§

§

PadNone

🔬This is a nightly-only experimental API. (test)
§

PadOnRight

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for NamePadding

Source§

fn clone(&self) -> NamePadding

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for NamePadding

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Hash for NamePadding

Source§

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

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

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

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

impl PartialEq for NamePadding

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, │ │ │ + Self: Sized,

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

impl PartialEq for NamePadding

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl Copy for NamePadding

Source§

impl Eq for NamePadding

Source§

impl StructuralPartialEq for NamePadding

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/enum.OutputFormat.html │ │ │ @@ -4,21 +4,21 @@ │ │ │ Json, │ │ │ Junit, │ │ │ }
🔬This is a nightly-only experimental API. (test)
Expand description

Format of the test results output

│ │ │

Variants§

§

Pretty

🔬This is a nightly-only experimental API. (test)

Verbose output

│ │ │
§

Terse

🔬This is a nightly-only experimental API. (test)

Quiet output

│ │ │
§

Json

🔬This is a nightly-only experimental API. (test)

JSON output

│ │ │
§

Junit

🔬This is a nightly-only experimental API. (test)

JUnit output

│ │ │ -

Trait Implementations§

Source§

impl Clone for OutputFormat

Source§

fn clone(&self) -> OutputFormat

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for OutputFormat

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for OutputFormat

Source§

fn default() -> OutputFormat

Returns the “default value” for a type. Read more
Source§

impl PartialEq for OutputFormat

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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

Trait Implementations§

Source§

impl Clone for OutputFormat

Source§

fn clone(&self) -> OutputFormat

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for OutputFormat

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for OutputFormat

Source§

fn default() -> OutputFormat

Returns the “default value” for a type. Read more
Source§

impl PartialEq for OutputFormat

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl Copy for OutputFormat

Source§

impl Eq for OutputFormat

Source§

impl StructuralPartialEq for OutputFormat

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/enum.RunIgnored.html │ │ │ @@ -1,20 +1,20 @@ │ │ │ RunIgnored in test - Rust

Enum RunIgnored

Source
pub enum RunIgnored {
│ │ │      Yes,
│ │ │      No,
│ │ │      Only,
│ │ │  }
🔬This is a nightly-only experimental API. (test)
Expand description

Whether ignored test should be run or not

│ │ │

Variants§

§

Yes

🔬This is a nightly-only experimental API. (test)
§

No

🔬This is a nightly-only experimental API. (test)
§

Only

🔬This is a nightly-only experimental API. (test)

Run only ignored tests

│ │ │ -

Trait Implementations§

Source§

impl Clone for RunIgnored

Source§

fn clone(&self) -> RunIgnored

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for RunIgnored

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for RunIgnored

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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

Trait Implementations§

Source§

impl Clone for RunIgnored

Source§

fn clone(&self) -> RunIgnored

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for RunIgnored

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for RunIgnored

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl Copy for RunIgnored

Source§

impl Eq for RunIgnored

Source§

impl StructuralPartialEq for RunIgnored

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/enum.ShouldPanic.html │ │ │ @@ -1,21 +1,21 @@ │ │ │ ShouldPanic in test - Rust

Enum ShouldPanic

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

Whether test is expected to panic or not

│ │ │ -

Variants§

§

No

🔬This is a nightly-only experimental API. (test)
§

Yes

🔬This is a nightly-only experimental API. (test)
§

YesWithMessage(&'static str)

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for ShouldPanic

Source§

fn clone(&self) -> ShouldPanic

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ShouldPanic

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Hash for ShouldPanic

Source§

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

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

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

Variants§

§

No

🔬This is a nightly-only experimental API. (test)
§

Yes

🔬This is a nightly-only experimental API. (test)
§

YesWithMessage(&'static str)

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for ShouldPanic

Source§

fn clone(&self) -> ShouldPanic

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ShouldPanic

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Hash for ShouldPanic

Source§

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

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

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

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

impl PartialEq for ShouldPanic

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, │ │ │ + Self: Sized,
Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ShouldPanic

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl Copy for ShouldPanic

Source§

impl Eq for ShouldPanic

Source§

impl StructuralPartialEq for ShouldPanic

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/enum.TestFn.html │ │ │ @@ -1,18 +1,18 @@ │ │ │ TestFn in test - Rust

Enum TestFn

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

Variants§

§

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

🔬This is a nightly-only experimental API. (test)
§

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

🔬This is a nightly-only experimental API. (test)
§

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

🔬This is a nightly-only experimental API. (test)
§

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

🔬This is a nightly-only experimental API. (test)
§

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

🔬This is a nightly-only experimental API. (test)
§

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

🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl TestFn

Source

pub fn padding(&self) -> NamePadding

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Debug for TestFn

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for TestFn

§

impl !RefUnwindSafe for TestFn

§

impl Send for TestFn

§

impl !Sync for TestFn

§

impl Unpin for TestFn

§

impl !UnwindSafe for TestFn

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ + StaticTestFn(fn() -> Result<(), String>), │ │ │ + StaticBenchFn(fn(&mut Bencher) -> Result<(), String>), │ │ │ + StaticBenchAsTestFn(fn(&mut Bencher) -> Result<(), String>), │ │ │ + DynTestFn(Box<dyn FnOnce() -> Result<(), String> + Send>), │ │ │ + DynBenchFn(Box<dyn Fn(&mut Bencher) -> Result<(), String> + Send>), │ │ │ + DynBenchAsTestFn(Box<dyn Fn(&mut Bencher) -> Result<(), String> + Send>), │ │ │ +}
🔬This is a nightly-only experimental API. (test)

Variants§

§

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

🔬This is a nightly-only experimental API. (test)
§

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

🔬This is a nightly-only experimental API. (test)
§

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

🔬This is a nightly-only experimental API. (test)
§

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

🔬This is a nightly-only experimental API. (test)
§

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

🔬This is a nightly-only experimental API. (test)
§

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

🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl TestFn

Source

pub fn padding(&self) -> NamePadding

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Debug for TestFn

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for TestFn

§

impl !RefUnwindSafe for TestFn

§

impl Send for TestFn

§

impl !Sync for TestFn

§

impl Unpin for TestFn

§

impl !UnwindSafe for TestFn

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/enum.TestName.html │ │ │ @@ -1,21 +1,21 @@ │ │ │ TestName in test - Rust

Enum TestName

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

Variants§

§

StaticTestName(&'static str)

🔬This is a nightly-only experimental API. (test)
§

DynTestName(String)

🔬This is a nightly-only experimental API. (test)
§

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

🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl TestName

Source

pub fn as_slice(&self) -> &str

🔬This is a nightly-only experimental API. (test)
Source

pub fn padding(&self) -> NamePadding

🔬This is a nightly-only experimental API. (test)
Source

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

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for TestName

Source§

fn clone(&self) -> TestName

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for TestName

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Display for TestName

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Hash for TestName

Source§

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

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

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

Variants§

§

StaticTestName(&'static str)

🔬This is a nightly-only experimental API. (test)
§

DynTestName(String)

🔬This is a nightly-only experimental API. (test)
§

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

🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl TestName

Source

pub fn as_slice(&self) -> &str

🔬This is a nightly-only experimental API. (test)
Source

pub fn padding(&self) -> NamePadding

🔬This is a nightly-only experimental API. (test)
Source

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

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for TestName

Source§

fn clone(&self) -> TestName

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for TestName

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Display for TestName

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Hash for TestName

Source§

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

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

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

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

impl PartialEq for TestName

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, │ │ │ + Self: Sized,

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

impl PartialEq for TestName

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl Eq for TestName

Source§

impl StructuralPartialEq for TestName

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/enum.TestType.html │ │ │ @@ -6,23 +6,23 @@ │ │ │ }
🔬This is a nightly-only experimental API. (test)
Expand description

Type of the test according to the Rust book │ │ │ conventions.

│ │ │

Variants§

§

UnitTest

🔬This is a nightly-only experimental API. (test)

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

│ │ │
§

IntegrationTest

🔬This is a nightly-only experimental API. (test)

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

│ │ │
§

DocTest

🔬This is a nightly-only experimental API. (test)

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

│ │ │
§

Unknown

🔬This is a nightly-only experimental API. (test)

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

│ │ │ -

Trait Implementations§

Source§

impl Clone for TestType

Source§

fn clone(&self) -> TestType

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for TestType

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Hash for TestType

Source§

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

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

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

Trait Implementations§

Source§

impl Clone for TestType

Source§

fn clone(&self) -> TestType

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for TestType

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Hash for TestType

Source§

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

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

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

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

impl PartialEq for TestType

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, │ │ │ + Self: Sized,
Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for TestType

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl Copy for TestType

Source§

impl Eq for TestType

Source§

impl StructuralPartialEq for TestType

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/fn.assert_test_result.html │ │ │ @@ -1,4 +1,4 @@ │ │ │ -assert_test_result in test - Rust

Function assert_test_result

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

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

Function assert_test_result

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

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

│ │ │
│ │ ├── ./usr/share/doc/rust-doc/html/test/fn.run_test.html │ │ │ @@ -1,8 +1,8 @@ │ │ │ run_test in test - Rust

Function run_test

Source
pub fn run_test(
│ │ │      opts: &TestOpts,
│ │ │ -    force_ignore: bool,
│ │ │ +    force_ignore: bool,
│ │ │      id: TestId,
│ │ │      test: TestDescAndFn,
│ │ │      strategy: RunStrategy,
│ │ │ -    monitor_ch: Sender<CompletedTest>,
│ │ │ -) -> Option<JoinHandle<()>>
🔬This is a nightly-only experimental API. (test)
│ │ │ + monitor_ch: Sender<CompletedTest>, │ │ │ +) -> Option<JoinHandle<()>>
🔬This is a nightly-only experimental API. (test)
│ │ ├── ./usr/share/doc/rust-doc/html/test/fn.run_tests.html │ │ │ @@ -1,6 +1,6 @@ │ │ │ run_tests in test - Rust

Function run_tests

Source
pub fn run_tests<F>(
│ │ │      opts: &TestOpts,
│ │ │      tests: Vec<TestDescAndFn>,
│ │ │      notify_about_test_event: F,
│ │ │ -) -> Result<()>
where │ │ │ - F: FnMut(TestEvent) -> Result<()>,
🔬This is a nightly-only experimental API. (test)
│ │ │ +) -> Result<()>
where │ │ │ + F: FnMut(TestEvent) -> Result<()>,
🔬This is a nightly-only experimental API. (test)
│ │ ├── ./usr/share/doc/rust-doc/html/test/fn.run_tests_console.html │ │ │ @@ -1,6 +1,6 @@ │ │ │ run_tests_console in test - Rust

Function run_tests_console

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

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

🔬This is a nightly-only experimental API. (test)
Expand description

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

│ │ │
│ │ ├── ./usr/share/doc/rust-doc/html/test/stats/fn.winsorize.html │ │ │ @@ -1,7 +1,7 @@ │ │ │ -winsorize in test::stats - Rust

Function winsorize

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

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

Function winsorize

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

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

│ │ │

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

│ │ │
│ │ ├── ./usr/share/doc/rust-doc/html/test/stats/struct.Summary.html │ │ │ @@ -1,29 +1,29 @@ │ │ │ Summary in test::stats - Rust

Struct Summary

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

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

│ │ │ -

Fields§

§sum: f64
🔬This is a nightly-only experimental API. (test)
§min: f64
🔬This is a nightly-only experimental API. (test)
§max: f64
🔬This is a nightly-only experimental API. (test)
§mean: f64
🔬This is a nightly-only experimental API. (test)
§median: f64
🔬This is a nightly-only experimental API. (test)
§var: f64
🔬This is a nightly-only experimental API. (test)
§std_dev: f64
🔬This is a nightly-only experimental API. (test)
§std_dev_pct: f64
🔬This is a nightly-only experimental API. (test)
§median_abs_dev: f64
🔬This is a nightly-only experimental API. (test)
§median_abs_dev_pct: f64
🔬This is a nightly-only experimental API. (test)
§quartiles: (f64, f64, f64)
🔬This is a nightly-only experimental API. (test)
§iqr: f64
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl Summary

Source

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

🔬This is a nightly-only experimental API. (test)

Constructs a new summary of a sample set.

│ │ │ -

Trait Implementations§

Source§

impl Clone for Summary

Source§

fn clone(&self) -> Summary

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Summary

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Summary

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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

Fields§

§sum: f64
🔬This is a nightly-only experimental API. (test)
§min: f64
🔬This is a nightly-only experimental API. (test)
§max: f64
🔬This is a nightly-only experimental API. (test)
§mean: f64
🔬This is a nightly-only experimental API. (test)
§median: f64
🔬This is a nightly-only experimental API. (test)
§var: f64
🔬This is a nightly-only experimental API. (test)
§std_dev: f64
🔬This is a nightly-only experimental API. (test)
§std_dev_pct: f64
🔬This is a nightly-only experimental API. (test)
§median_abs_dev: f64
🔬This is a nightly-only experimental API. (test)
§median_abs_dev_pct: f64
🔬This is a nightly-only experimental API. (test)
§quartiles: (f64, f64, f64)
🔬This is a nightly-only experimental API. (test)
§iqr: f64
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl Summary

Source

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

🔬This is a nightly-only experimental API. (test)

Constructs a new summary of a sample set.

│ │ │ +

Trait Implementations§

Source§

impl Clone for Summary

Source§

fn clone(&self) -> Summary

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Summary

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Summary

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl Copy for Summary

Source§

impl StructuralPartialEq for Summary

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

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

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

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

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/stats/trait.Stats.html │ │ │ @@ -1,62 +1,62 @@ │ │ │ Stats in test::stats - Rust

Trait Stats

Source
pub trait Stats {
│ │ │  
Show 13 methods // Required methods │ │ │ - fn sum(&self) -> f64; │ │ │ - fn min(&self) -> f64; │ │ │ - fn max(&self) -> f64; │ │ │ - fn mean(&self) -> f64; │ │ │ - fn median(&self) -> f64; │ │ │ - fn var(&self) -> f64; │ │ │ - fn std_dev(&self) -> f64; │ │ │ - fn std_dev_pct(&self) -> f64; │ │ │ - fn median_abs_dev(&self) -> f64; │ │ │ - fn median_abs_dev_pct(&self) -> f64; │ │ │ - fn percentile(&self, pct: f64) -> f64; │ │ │ - fn quartiles(&self) -> (f64, f64, f64); │ │ │ - fn iqr(&self) -> f64; │ │ │ + fn sum(&self) -> f64; │ │ │ + fn min(&self) -> f64; │ │ │ + fn max(&self) -> f64; │ │ │ + fn mean(&self) -> f64; │ │ │ + fn median(&self) -> f64; │ │ │ + fn var(&self) -> f64; │ │ │ + fn std_dev(&self) -> f64; │ │ │ + fn std_dev_pct(&self) -> f64; │ │ │ + fn median_abs_dev(&self) -> f64; │ │ │ + fn median_abs_dev_pct(&self) -> f64; │ │ │ + fn percentile(&self, pct: f64) -> f64; │ │ │ + fn quartiles(&self) -> (f64, f64, f64); │ │ │ + fn iqr(&self) -> f64; │ │ │
}
🔬This is a nightly-only experimental API. (test)
Expand description

Trait that provides simple descriptive statistics on a univariate set of numeric samples.

│ │ │ -

Required Methods§

Source

fn sum(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Sum of the samples.

│ │ │ +

Required Methods§

Source

fn sum(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Sum of the samples.

│ │ │

Note: this method sacrifices performance at the altar of accuracy │ │ │ Depends on IEEE 754 arithmetic guarantees. See proof of correctness at: │ │ │ “Adaptive Precision Floating-Point Arithmetic and Fast Robust Geometric │ │ │ Predicates”

│ │ │ -
Source

fn min(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Minimum value of the samples.

│ │ │ -
Source

fn max(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Maximum value of the samples.

│ │ │ -
Source

fn mean(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Arithmetic mean (average) of the samples: sum divided by sample-count.

│ │ │ +
Source

fn min(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Minimum value of the samples.

│ │ │ +
Source

fn max(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Maximum value of the samples.

│ │ │ +
Source

fn mean(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Arithmetic mean (average) of the samples: sum divided by sample-count.

│ │ │

See: https://en.wikipedia.org/wiki/Arithmetic_mean

│ │ │ -
Source

fn median(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Median of the samples: value separating the lower half of the samples from the higher half. │ │ │ +

Source

fn median(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Median of the samples: value separating the lower half of the samples from the higher half. │ │ │ Equal to self.percentile(50.0).

│ │ │

See: https://en.wikipedia.org/wiki/Median

│ │ │ -
Source

fn var(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Variance of the samples: bias-corrected mean of the squares of the differences of each │ │ │ +

Source

fn var(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Variance of the samples: bias-corrected mean of the squares of the differences of each │ │ │ sample from the sample mean. Note that this calculates the sample variance rather than the │ │ │ population variance, which is assumed to be unknown. It therefore corrects the (n-1)/n │ │ │ bias that would appear if we calculated a population variance, by dividing by (n-1) rather │ │ │ than n.

│ │ │

See: https://en.wikipedia.org/wiki/Variance

│ │ │ -
Source

fn std_dev(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Standard deviation: the square root of the sample variance.

│ │ │ +
Source

fn std_dev(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Standard deviation: the square root of the sample variance.

│ │ │

Note: this is not a robust statistic for non-normal distributions. Prefer the │ │ │ median_abs_dev for unknown distributions.

│ │ │

See: https://en.wikipedia.org/wiki/Standard_deviation

│ │ │ -
Source

fn std_dev_pct(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Standard deviation as a percent of the mean value. See std_dev and mean.

│ │ │ +
Source

fn std_dev_pct(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Standard deviation as a percent of the mean value. See std_dev and mean.

│ │ │

Note: this is not a robust statistic for non-normal distributions. Prefer the │ │ │ median_abs_dev_pct for unknown distributions.

│ │ │ -
Source

fn median_abs_dev(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Scaled median of the absolute deviations of each sample from the sample median. This is a │ │ │ +

Source

fn median_abs_dev(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Scaled median of the absolute deviations of each sample from the sample median. This is a │ │ │ robust (distribution-agnostic) estimator of sample variability. Use this in preference to │ │ │ std_dev if you cannot assume your sample is normally distributed. Note that this is scaled │ │ │ by the constant 1.4826 to allow its use as a consistent estimator for the standard │ │ │ deviation.

│ │ │

See: https://en.wikipedia.org/wiki/Median_absolute_deviation

│ │ │ -
Source

fn median_abs_dev_pct(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Median absolute deviation as a percent of the median. See median_abs_dev and median.

│ │ │ -
Source

fn percentile(&self, pct: f64) -> f64

🔬This is a nightly-only experimental API. (test)

Percentile: the value below which pct percent of the values in self fall. For example, │ │ │ +

Source

fn median_abs_dev_pct(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Median absolute deviation as a percent of the median. See median_abs_dev and median.

│ │ │ +
Source

fn percentile(&self, pct: f64) -> f64

🔬This is a nightly-only experimental API. (test)

Percentile: the value below which pct percent of the values in self fall. For example, │ │ │ percentile(95.0) will return the value v such that 95% of the samples s in self │ │ │ satisfy s <= v.

│ │ │

Calculated by linear interpolation between closest ranks.

│ │ │

See: https://en.wikipedia.org/wiki/Percentile

│ │ │ -
Source

fn quartiles(&self) -> (f64, f64, f64)

🔬This is a nightly-only experimental API. (test)

Quartiles of the sample: three values that divide the sample into four equal groups, each │ │ │ +

Source

fn quartiles(&self) -> (f64, f64, f64)

🔬This is a nightly-only experimental API. (test)

Quartiles of the sample: three values that divide the sample into four equal groups, each │ │ │ with 1/4 of the data. The middle value is the median. See median and percentile. This │ │ │ function may calculate the 3 quartiles more efficiently than 3 calls to percentile, but │ │ │ is otherwise equivalent.

│ │ │

See also: https://en.wikipedia.org/wiki/Quartile

│ │ │ -
Source

fn iqr(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Inter-quartile range: the difference between the 25th percentile (1st quartile) and the 75th │ │ │ +

Source

fn iqr(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Inter-quartile range: the difference between the 25th percentile (1st quartile) and the 75th │ │ │ percentile (3rd quartile). See quartiles.

│ │ │

See also: https://en.wikipedia.org/wiki/Interquartile_range

│ │ │ -

Implementations on Foreign Types§

Source§

impl Stats for [f64]

Source§

fn sum(&self) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn min(&self) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn max(&self) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn mean(&self) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn median(&self) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn var(&self) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn std_dev(&self) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn std_dev_pct(&self) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn median_abs_dev(&self) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn median_abs_dev_pct(&self) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn percentile(&self, pct: f64) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn quartiles(&self) -> (f64, f64, f64)

🔬This is a nightly-only experimental API. (test)
Source§

fn iqr(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Implementors§

│ │ │ +

Implementations on Foreign Types§

Source§

impl Stats for [f64]

Source§

fn sum(&self) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn min(&self) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn max(&self) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn mean(&self) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn median(&self) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn var(&self) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn std_dev(&self) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn std_dev_pct(&self) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn median_abs_dev(&self) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn median_abs_dev_pct(&self) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn percentile(&self, pct: f64) -> f64

🔬This is a nightly-only experimental API. (test)
Source§

fn quartiles(&self) -> (f64, f64, f64)

🔬This is a nightly-only experimental API. (test)
Source§

fn iqr(&self) -> f64

🔬This is a nightly-only experimental API. (test)

Implementors§

│ │ ├── ./usr/share/doc/rust-doc/html/test/struct.Options.html │ │ │ @@ -1,18 +1,18 @@ │ │ │ Options in test - Rust

Struct Options

Source
pub struct Options {
│ │ │ -    pub display_output: bool,
│ │ │ -    pub panic_abort: bool,
│ │ │ +    pub display_output: bool,
│ │ │ +    pub panic_abort: bool,
│ │ │  }
🔬This is a nightly-only experimental API. (test)
Expand description

Options for the test run defined by the caller (instead of CLI arguments). │ │ │ In case we want to add other options as well, just add them in this struct.

│ │ │ -

Fields§

§display_output: bool
🔬This is a nightly-only experimental API. (test)
§panic_abort: bool
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl Options

Source

pub fn new() -> Options

🔬This is a nightly-only experimental API. (test)
Source

pub fn display_output(self, display_output: bool) -> Options

🔬This is a nightly-only experimental API. (test)
Source

pub fn panic_abort(self, panic_abort: bool) -> Options

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for Options

Source§

fn clone(&self) -> Options

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Options

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for Options

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ +

Fields§

§display_output: bool
🔬This is a nightly-only experimental API. (test)
§panic_abort: bool
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl Options

Source

pub fn new() -> Options

🔬This is a nightly-only experimental API. (test)
Source

pub fn display_output(self, display_output: bool) -> Options

🔬This is a nightly-only experimental API. (test)
Source

pub fn panic_abort(self, panic_abort: bool) -> Options

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for Options

Source§

fn clone(&self) -> Options

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Options

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for Options

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

That is, this conversion is whatever the implementation of │ │ │ From<T> for U chooses to do.

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/struct.TestDesc.html │ │ │ @@ -1,28 +1,28 @@ │ │ │ TestDesc in test - Rust

Struct TestDesc

Source
pub struct TestDesc {
│ │ │      pub name: TestName,
│ │ │ -    pub ignore: bool,
│ │ │ -    pub ignore_message: Option<&'static str>,
│ │ │ -    pub source_file: &'static str,
│ │ │ -    pub start_line: usize,
│ │ │ -    pub start_col: usize,
│ │ │ -    pub end_line: usize,
│ │ │ -    pub end_col: usize,
│ │ │ +    pub ignore: bool,
│ │ │ +    pub ignore_message: Option<&'static str>,
│ │ │ +    pub source_file: &'static str,
│ │ │ +    pub start_line: usize,
│ │ │ +    pub start_col: usize,
│ │ │ +    pub end_line: usize,
│ │ │ +    pub end_col: usize,
│ │ │      pub should_panic: ShouldPanic,
│ │ │ -    pub compile_fail: bool,
│ │ │ -    pub no_run: bool,
│ │ │ +    pub compile_fail: bool,
│ │ │ +    pub no_run: bool,
│ │ │      pub test_type: TestType,
│ │ │ -}
🔬This is a nightly-only experimental API. (test)

Fields§

§name: TestName
🔬This is a nightly-only experimental API. (test)
§ignore: bool
🔬This is a nightly-only experimental API. (test)
§ignore_message: Option<&'static str>
🔬This is a nightly-only experimental API. (test)
§source_file: &'static str
🔬This is a nightly-only experimental API. (test)
§start_line: usize
🔬This is a nightly-only experimental API. (test)
§start_col: usize
🔬This is a nightly-only experimental API. (test)
§end_line: usize
🔬This is a nightly-only experimental API. (test)
§end_col: usize
🔬This is a nightly-only experimental API. (test)
§should_panic: ShouldPanic
🔬This is a nightly-only experimental API. (test)
§compile_fail: bool
🔬This is a nightly-only experimental API. (test)
§no_run: bool
🔬This is a nightly-only experimental API. (test)
§test_type: TestType
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl TestDesc

Source

pub fn padded_name(&self, column_count: usize, align: NamePadding) -> String

🔬This is a nightly-only experimental API. (test)
Source

pub fn test_mode(&self) -> Option<&'static str>

🔬This 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. │ │ │ +}

🔬This is a nightly-only experimental API. (test)

Fields§

§name: TestName
🔬This is a nightly-only experimental API. (test)
§ignore: bool
🔬This is a nightly-only experimental API. (test)
§ignore_message: Option<&'static str>
🔬This is a nightly-only experimental API. (test)
§source_file: &'static str
🔬This is a nightly-only experimental API. (test)
§start_line: usize
🔬This is a nightly-only experimental API. (test)
§start_col: usize
🔬This is a nightly-only experimental API. (test)
§end_line: usize
🔬This is a nightly-only experimental API. (test)
§end_col: usize
🔬This is a nightly-only experimental API. (test)
§should_panic: ShouldPanic
🔬This is a nightly-only experimental API. (test)
§compile_fail: bool
🔬This is a nightly-only experimental API. (test)
§no_run: bool
🔬This is a nightly-only experimental API. (test)
§test_type: TestType
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl TestDesc

Source

pub fn padded_name(&self, column_count: usize, align: NamePadding) -> String

🔬This is a nightly-only experimental API. (test)
Source

pub fn test_mode(&self) -> Option<&'static str>

🔬This 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. │ │ │ Descriptions include “should panic”, “compile fail” and “compile”.

│ │ │

Trait Implementations§

Source§

impl Clone for TestDesc

Source§

fn clone(&self) -> TestDesc

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TestDesc

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

That is, this conversion is whatever the implementation of │ │ │ From<T> for U chooses to do.

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/struct.TestDescAndFn.html │ │ │ @@ -1,22 +1,22 @@ │ │ │ TestDescAndFn in test - Rust

Struct TestDescAndFn

Source
pub struct TestDescAndFn {
│ │ │      pub desc: TestDesc,
│ │ │      pub testfn: TestFn,
│ │ │  }
🔬This is a nightly-only experimental API. (test)

Fields§

§desc: TestDesc
🔬This is a nightly-only experimental API. (test)
§testfn: TestFn
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl TestDescAndFn

Source

pub const fn new_doctest( │ │ │ - test_name: &'static str, │ │ │ - ignore: bool, │ │ │ - source_file: &'static str, │ │ │ - start_line: usize, │ │ │ - no_run: bool, │ │ │ - should_panic: bool, │ │ │ + test_name: &'static str, │ │ │ + ignore: bool, │ │ │ + source_file: &'static str, │ │ │ + start_line: usize, │ │ │ + no_run: bool, │ │ │ + should_panic: bool, │ │ │ testfn: TestFn, │ │ │ ) -> Self

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Debug for TestDescAndFn

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

That is, this conversion is whatever the implementation of │ │ │ From<T> for U chooses to do.

│ │ │
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/struct.TestId.html │ │ │ @@ -1,16 +1,16 @@ │ │ │ -TestId in test - Rust

Struct TestId

Source
pub struct TestId(pub usize);
🔬This is a nightly-only experimental API. (test)

Tuple Fields§

§0: usize
🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for TestId

Source§

fn clone(&self) -> TestId

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TestId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for TestId

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where │ │ │ +TestId in test - Rust

Struct TestId

Source
pub struct TestId(pub usize);
🔬This is a nightly-only experimental API. (test)

Tuple Fields§

§0: usize
🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for TestId

Source§

fn clone(&self) -> TestId

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TestId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for TestId

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where │ │ │ H: Hasher, │ │ │ - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for TestId

Source§

fn eq(&self, other: &TestId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for TestId

Source§

fn eq(&self, other: &TestId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl Copy for TestId

Source§

impl Eq for TestId

Source§

impl StructuralPartialEq for TestId

Auto Trait Implementations§

§

impl Freeze for TestId

§

impl RefUnwindSafe for TestId

§

impl Send for TestId

§

impl Sync for TestId

§

impl Unpin for TestId

§

impl UnwindSafe for TestId

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

That is, this conversion is whatever the implementation of │ │ │ From<T> for U chooses to do.

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/struct.TestOpts.html │ │ │ @@ -1,34 +1,34 @@ │ │ │ TestOpts in test - Rust

Struct TestOpts

Source
pub struct TestOpts {
Show 19 fields │ │ │ - pub list: bool, │ │ │ + pub list: bool, │ │ │ pub filters: Vec<String>, │ │ │ - pub filter_exact: bool, │ │ │ - pub force_run_in_process: bool, │ │ │ - pub exclude_should_panic: bool, │ │ │ + pub filter_exact: bool, │ │ │ + pub force_run_in_process: bool, │ │ │ + pub exclude_should_panic: bool, │ │ │ pub run_ignored: RunIgnored, │ │ │ - pub run_tests: bool, │ │ │ - pub bench_benchmarks: bool, │ │ │ - pub logfile: Option<PathBuf>, │ │ │ - pub nocapture: bool, │ │ │ + pub run_tests: bool, │ │ │ + pub bench_benchmarks: bool, │ │ │ + pub logfile: Option<PathBuf>, │ │ │ + pub nocapture: bool, │ │ │ pub color: ColorConfig, │ │ │ pub format: OutputFormat, │ │ │ - pub shuffle: bool, │ │ │ - pub shuffle_seed: Option<u64>, │ │ │ - pub test_threads: Option<usize>, │ │ │ + pub shuffle: bool, │ │ │ + pub shuffle_seed: Option<u64>, │ │ │ + pub test_threads: Option<usize>, │ │ │ pub skip: Vec<String>, │ │ │ pub time_options: Option<TestTimeOptions>, │ │ │ - pub fail_fast: bool, │ │ │ + pub fail_fast: bool, │ │ │ pub options: Options, │ │ │ -
}
🔬This is a nightly-only experimental API. (test)

Fields§

§list: bool
🔬This is a nightly-only experimental API. (test)
§filters: Vec<String>
🔬This is a nightly-only experimental API. (test)
§filter_exact: bool
🔬This is a nightly-only experimental API. (test)
§force_run_in_process: bool
🔬This is a nightly-only experimental API. (test)
§exclude_should_panic: bool
🔬This is a nightly-only experimental API. (test)
§run_ignored: RunIgnored
🔬This is a nightly-only experimental API. (test)
§run_tests: bool
🔬This is a nightly-only experimental API. (test)
§bench_benchmarks: bool
🔬This is a nightly-only experimental API. (test)
§logfile: Option<PathBuf>
🔬This is a nightly-only experimental API. (test)
§nocapture: bool
🔬This is a nightly-only experimental API. (test)
§color: ColorConfig
🔬This is a nightly-only experimental API. (test)
§format: OutputFormat
🔬This is a nightly-only experimental API. (test)
§shuffle: bool
🔬This is a nightly-only experimental API. (test)
§shuffle_seed: Option<u64>
🔬This is a nightly-only experimental API. (test)
§test_threads: Option<usize>
🔬This is a nightly-only experimental API. (test)
§skip: Vec<String>
🔬This is a nightly-only experimental API. (test)
§time_options: Option<TestTimeOptions>
🔬This is a nightly-only experimental API. (test)
§fail_fast: bool
🔬This is a nightly-only experimental API. (test)

Stop at first failing test. │ │ │ +}

🔬This is a nightly-only experimental API. (test)

Fields§

§list: bool
🔬This is a nightly-only experimental API. (test)
§filters: Vec<String>
🔬This is a nightly-only experimental API. (test)
§filter_exact: bool
🔬This is a nightly-only experimental API. (test)
§force_run_in_process: bool
🔬This is a nightly-only experimental API. (test)
§exclude_should_panic: bool
🔬This is a nightly-only experimental API. (test)
§run_ignored: RunIgnored
🔬This is a nightly-only experimental API. (test)
§run_tests: bool
🔬This is a nightly-only experimental API. (test)
§bench_benchmarks: bool
🔬This is a nightly-only experimental API. (test)
§logfile: Option<PathBuf>
🔬This is a nightly-only experimental API. (test)
§nocapture: bool
🔬This is a nightly-only experimental API. (test)
§color: ColorConfig
🔬This is a nightly-only experimental API. (test)
§format: OutputFormat
🔬This is a nightly-only experimental API. (test)
§shuffle: bool
🔬This is a nightly-only experimental API. (test)
§shuffle_seed: Option<u64>
🔬This is a nightly-only experimental API. (test)
§test_threads: Option<usize>
🔬This is a nightly-only experimental API. (test)
§skip: Vec<String>
🔬This is a nightly-only experimental API. (test)
§time_options: Option<TestTimeOptions>
🔬This is a nightly-only experimental API. (test)
§fail_fast: bool
🔬This is a nightly-only experimental API. (test)

Stop at first failing test. │ │ │ May run a few more tests due to threading, but will │ │ │ abort as soon as possible.

│ │ │ -
§options: Options
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl TestOpts

Source

pub fn use_color(&self) -> bool

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Debug for TestOpts

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ +
§options: Options
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl TestOpts

Source

pub fn use_color(&self) -> bool

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Debug for TestOpts

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

That is, this conversion is whatever the implementation of │ │ │ From<T> for U chooses to do.

│ │ │
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/test/enum.RunIgnored.html │ │ │ @@ -1,20 +1,20 @@ │ │ │ RunIgnored in test::test - Rust

Enum RunIgnored

Source
pub enum RunIgnored {
│ │ │      Yes,
│ │ │      No,
│ │ │      Only,
│ │ │  }
🔬This is a nightly-only experimental API. (test)
Expand description

Whether ignored test should be run or not

│ │ │

Variants§

§

Yes

🔬This is a nightly-only experimental API. (test)
§

No

🔬This is a nightly-only experimental API. (test)
§

Only

🔬This is a nightly-only experimental API. (test)

Run only ignored tests

│ │ │ -

Trait Implementations§

Source§

impl Clone for RunIgnored

Source§

fn clone(&self) -> RunIgnored

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RunIgnored

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for RunIgnored

Source§

fn eq(&self, other: &RunIgnored) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ +

Trait Implementations§

Source§

impl Clone for RunIgnored

Source§

fn clone(&self) -> RunIgnored

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RunIgnored

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for RunIgnored

Source§

fn eq(&self, other: &RunIgnored) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl Copy for RunIgnored

Source§

impl Eq for RunIgnored

Source§

impl StructuralPartialEq for RunIgnored

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

That is, this conversion is whatever the implementation of │ │ │ From<T> for U chooses to do.

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/test/enum.RunStrategy.html │ │ │ @@ -4,18 +4,18 @@ │ │ │ }
🔬This is a nightly-only experimental API. (test)

Variants§

§

InProcess

🔬This is a nightly-only experimental API. (test)

Runs the test in the current process, and sends the result back over the │ │ │ supplied channel.

│ │ │
§

SpawnPrimary

🔬This is a nightly-only experimental API. (test)

Spawns a subprocess to run the test, and sends the result back over the │ │ │ supplied channel. Requires argv[0] to exist and point to the binary │ │ │ that’s currently running.

│ │ │

Trait Implementations§

Source§

impl Clone for RunStrategy

Source§

fn clone(&self) -> RunStrategy

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for RunStrategy

Auto Trait Implementations§

§

impl Freeze for RunStrategy

§

impl RefUnwindSafe for RunStrategy

§

impl Send for RunStrategy

§

impl Sync for RunStrategy

§

impl Unpin for RunStrategy

§

impl UnwindSafe for RunStrategy

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

That is, this conversion is whatever the implementation of │ │ │ From<T> for U chooses to do.

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/test/enum.ShouldPanic.html │ │ │ @@ -1,21 +1,21 @@ │ │ │ ShouldPanic in test::test - Rust

Enum ShouldPanic

Source
pub enum ShouldPanic {
│ │ │      No,
│ │ │      Yes,
│ │ │ -    YesWithMessage(&'static str),
│ │ │ +    YesWithMessage(&'static str),
│ │ │  }
🔬This is a nightly-only experimental API. (test)
Expand description

Whether test is expected to panic or not

│ │ │ -

Variants§

§

No

🔬This is a nightly-only experimental API. (test)
§

Yes

🔬This is a nightly-only experimental API. (test)
§

YesWithMessage(&'static str)

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for ShouldPanic

Source§

fn clone(&self) -> ShouldPanic

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ShouldPanic

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for ShouldPanic

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where │ │ │ +

Variants§

§

No

🔬This is a nightly-only experimental API. (test)
§

Yes

🔬This is a nightly-only experimental API. (test)
§

YesWithMessage(&'static str)

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for ShouldPanic

Source§

fn clone(&self) -> ShouldPanic

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ShouldPanic

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for ShouldPanic

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where │ │ │ H: Hasher, │ │ │ - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ShouldPanic

Source§

fn eq(&self, other: &ShouldPanic) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ + Self: Sized,
Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ShouldPanic

Source§

fn eq(&self, other: &ShouldPanic) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl Copy for ShouldPanic

Source§

impl Eq for ShouldPanic

Source§

impl StructuralPartialEq for ShouldPanic

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

That is, this conversion is whatever the implementation of │ │ │ From<T> for U chooses to do.

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/test/enum.TestName.html │ │ │ @@ -1,21 +1,21 @@ │ │ │ TestName in test::test - Rust

Enum TestName

Source
pub enum TestName {
│ │ │ -    StaticTestName(&'static str),
│ │ │ +    StaticTestName(&'static str),
│ │ │      DynTestName(String),
│ │ │ -    AlignedTestName(Cow<'static, str>, NamePadding),
│ │ │ -}
🔬This is a nightly-only experimental API. (test)

Variants§

§

StaticTestName(&'static str)

🔬This is a nightly-only experimental API. (test)
§

DynTestName(String)

🔬This is a nightly-only experimental API. (test)
§

AlignedTestName(Cow<'static, str>, NamePadding)

🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl TestName

Source

pub fn as_slice(&self) -> &str

🔬This is a nightly-only experimental API. (test)
Source

pub fn padding(&self) -> NamePadding

🔬This is a nightly-only experimental API. (test)
Source

pub fn with_padding(&self, padding: NamePadding) -> TestName

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for TestName

Source§

fn clone(&self) -> TestName

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TestName

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for TestName

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for TestName

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where │ │ │ + AlignedTestName(Cow<'static, str>, NamePadding), │ │ │ +}
🔬This is a nightly-only experimental API. (test)

Variants§

§

StaticTestName(&'static str)

🔬This is a nightly-only experimental API. (test)
§

DynTestName(String)

🔬This is a nightly-only experimental API. (test)
§

AlignedTestName(Cow<'static, str>, NamePadding)

🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl TestName

Source

pub fn as_slice(&self) -> &str

🔬This is a nightly-only experimental API. (test)
Source

pub fn padding(&self) -> NamePadding

🔬This is a nightly-only experimental API. (test)
Source

pub fn with_padding(&self, padding: NamePadding) -> TestName

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for TestName

Source§

fn clone(&self) -> TestName

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TestName

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for TestName

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for TestName

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where │ │ │ H: Hasher, │ │ │ - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for TestName

Source§

fn eq(&self, other: &TestName) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for TestName

Source§

fn eq(&self, other: &TestName) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl Eq for TestName

Source§

impl StructuralPartialEq for TestName

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

That is, this conversion is whatever the implementation of │ │ │ From<T> for U chooses to do.

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where │ │ │ T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/test/enum.TestResult.html │ │ │ @@ -1,21 +1,21 @@ │ │ │ TestResult in test::test - Rust

Enum TestResult

Source
pub enum TestResult {
│ │ │      TrOk,
│ │ │      TrFailed,
│ │ │      TrFailedMsg(String),
│ │ │      TrIgnored,
│ │ │      TrBench(BenchSamples),
│ │ │      TrTimedFail,
│ │ │ -}
🔬This is a nightly-only experimental API. (test)

Variants§

§

TrOk

🔬This is a nightly-only experimental API. (test)
§

TrFailed

🔬This is a nightly-only experimental API. (test)
§

TrFailedMsg(String)

🔬This is a nightly-only experimental API. (test)
§

TrIgnored

🔬This is a nightly-only experimental API. (test)
§

TrBench(BenchSamples)

🔬This is a nightly-only experimental API. (test)
§

TrTimedFail

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for TestResult

Source§

fn clone(&self) -> TestResult

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TestResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for TestResult

Source§

fn eq(&self, other: &TestResult) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ +}
🔬This is a nightly-only experimental API. (test)

Variants§

§

TrOk

🔬This is a nightly-only experimental API. (test)
§

TrFailed

🔬This is a nightly-only experimental API. (test)
§

TrFailedMsg(String)

🔬This is a nightly-only experimental API. (test)
§

TrIgnored

🔬This is a nightly-only experimental API. (test)
§

TrBench(BenchSamples)

🔬This is a nightly-only experimental API. (test)
§

TrTimedFail

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for TestResult

Source§

fn clone(&self) -> TestResult

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TestResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for TestResult

Source§

fn eq(&self, other: &TestResult) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for TestResult

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

That is, this conversion is whatever the implementation of │ │ │ From<T> for U chooses to do.

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/test/enum.TestType.html │ │ │ @@ -6,23 +6,23 @@ │ │ │ }
🔬This is a nightly-only experimental API. (test)
Expand description

Type of the test according to the Rust book │ │ │ conventions.

│ │ │

Variants§

§

UnitTest

🔬This is a nightly-only experimental API. (test)

Unit-tests are expected to be in the src folder of the crate.

│ │ │
§

IntegrationTest

🔬This is a nightly-only experimental API. (test)

Integration-style tests are expected to be in the tests folder of the crate.

│ │ │
§

DocTest

🔬This is a nightly-only experimental API. (test)

Doctests are created by the librustdoc manually, so it’s a different type of test.

│ │ │
§

Unknown

🔬This is a nightly-only experimental API. (test)

Tests for the sources that don’t follow the project layout convention │ │ │ (e.g. tests in raw main.rs compiled by calling rustc --test directly).

│ │ │ -

Trait Implementations§

Source§

impl Clone for TestType

Source§

fn clone(&self) -> TestType

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TestType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for TestType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where │ │ │ +

Trait Implementations§

Source§

impl Clone for TestType

Source§

fn clone(&self) -> TestType

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TestType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for TestType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where │ │ │ H: Hasher, │ │ │ - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for TestType

Source§

fn eq(&self, other: &TestType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ + Self: Sized,
Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for TestType

Source§

fn eq(&self, other: &TestType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl Copy for TestType

Source§

impl Eq for TestType

Source§

impl StructuralPartialEq for TestType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

That is, this conversion is whatever the implementation of │ │ │ From<T> for U chooses to do.

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/test/struct.Metric.html │ │ │ @@ -1,14 +1,14 @@ │ │ │ -Metric in test::test - Rust

Struct Metric

Source
pub struct Metric { /* private fields */ }
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl Metric

Source

pub fn new(value: f64, noise: f64) -> Metric

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for Metric

Source§

fn clone(&self) -> Metric

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Metric

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Metric

Source§

fn eq(&self, other: &Metric) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ +Metric in test::test - Rust

Struct Metric

Source
pub struct Metric { /* private fields */ }
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl Metric

Source

pub fn new(value: f64, noise: f64) -> Metric

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for Metric

Source§

fn clone(&self) -> Metric

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Metric

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Metric

Source§

fn eq(&self, other: &Metric) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl Copy for Metric

Source§

impl StructuralPartialEq for Metric

Auto Trait Implementations§

§

impl Freeze for Metric

§

impl RefUnwindSafe for Metric

§

impl Send for Metric

§

impl Sync for Metric

§

impl Unpin for Metric

§

impl UnwindSafe for Metric

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

That is, this conversion is whatever the implementation of │ │ │ From<T> for U chooses to do.

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/test/struct.MetricMap.html │ │ │ @@ -1,25 +1,25 @@ │ │ │ -MetricMap in test::test - Rust

Struct MetricMap

Source
pub struct MetricMap(/* private fields */);
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl MetricMap

Source

pub fn new() -> MetricMap

🔬This is a nightly-only experimental API. (test)
Source

pub fn insert_metric(&mut self, name: &str, value: f64, noise: f64)

🔬This is a nightly-only experimental API. (test)

Insert a named value (+/- noise) metric into the map. The value │ │ │ +MetricMap in test::test - Rust

Struct MetricMap

Source
pub struct MetricMap(/* private fields */);
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl MetricMap

Source

pub fn new() -> MetricMap

🔬This is a nightly-only experimental API. (test)
Source

pub fn insert_metric(&mut self, name: &str, value: f64, noise: f64)

🔬This is a nightly-only experimental API. (test)

Insert a named value (+/- noise) metric into the map. The value │ │ │ must be non-negative. The noise indicates the uncertainty of the │ │ │ metric, which doubles as the “noise range” of acceptable │ │ │ pairwise-regressions on this named value, when comparing from one │ │ │ metric to the next using compare_to_old.

│ │ │

If noise is positive, then it means this metric is of a value │ │ │ you want to see grow smaller, so a change larger than noise in the │ │ │ positive direction represents a regression.

│ │ │

If noise is negative, then it means this metric is of a value │ │ │ you want to see grow larger, so a change larger than noise in the │ │ │ negative direction represents a regression.

│ │ │ -
Source

pub fn fmt_metrics(&self) -> String

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for MetricMap

Source§

fn clone(&self) -> MetricMap

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl PartialEq for MetricMap

Source§

fn eq(&self, other: &MetricMap) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ +
Source

pub fn fmt_metrics(&self) -> String

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for MetricMap

Source§

fn clone(&self) -> MetricMap

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl PartialEq for MetricMap

Source§

fn eq(&self, other: &MetricMap) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for MetricMap

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

That is, this conversion is whatever the implementation of │ │ │ From<T> for U chooses to do.

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/test/struct.Options.html │ │ │ @@ -1,18 +1,18 @@ │ │ │ Options in test::test - Rust

Struct Options

Source
pub struct Options {
│ │ │ -    pub display_output: bool,
│ │ │ -    pub panic_abort: bool,
│ │ │ +    pub display_output: bool,
│ │ │ +    pub panic_abort: bool,
│ │ │  }
🔬This is a nightly-only experimental API. (test)
Expand description

Options for the test run defined by the caller (instead of CLI arguments). │ │ │ In case we want to add other options as well, just add them in this struct.

│ │ │ -

Fields§

§display_output: bool
🔬This is a nightly-only experimental API. (test)
§panic_abort: bool
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl Options

Source

pub fn new() -> Options

🔬This is a nightly-only experimental API. (test)
Source

pub fn display_output(self, display_output: bool) -> Options

🔬This is a nightly-only experimental API. (test)
Source

pub fn panic_abort(self, panic_abort: bool) -> Options

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for Options

Source§

fn clone(&self) -> Options

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Options

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for Options

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ +

Fields§

§display_output: bool
🔬This is a nightly-only experimental API. (test)
§panic_abort: bool
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl Options

Source

pub fn new() -> Options

🔬This is a nightly-only experimental API. (test)
Source

pub fn display_output(self, display_output: bool) -> Options

🔬This is a nightly-only experimental API. (test)
Source

pub fn panic_abort(self, panic_abort: bool) -> Options

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for Options

Source§

fn clone(&self) -> Options

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Options

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for Options

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

That is, this conversion is whatever the implementation of │ │ │ From<T> for U chooses to do.

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/test/struct.TestDesc.html │ │ │ @@ -1,28 +1,28 @@ │ │ │ TestDesc in test::test - Rust

Struct TestDesc

Source
pub struct TestDesc {
│ │ │      pub name: TestName,
│ │ │ -    pub ignore: bool,
│ │ │ -    pub ignore_message: Option<&'static str>,
│ │ │ -    pub source_file: &'static str,
│ │ │ -    pub start_line: usize,
│ │ │ -    pub start_col: usize,
│ │ │ -    pub end_line: usize,
│ │ │ -    pub end_col: usize,
│ │ │ +    pub ignore: bool,
│ │ │ +    pub ignore_message: Option<&'static str>,
│ │ │ +    pub source_file: &'static str,
│ │ │ +    pub start_line: usize,
│ │ │ +    pub start_col: usize,
│ │ │ +    pub end_line: usize,
│ │ │ +    pub end_col: usize,
│ │ │      pub should_panic: ShouldPanic,
│ │ │ -    pub compile_fail: bool,
│ │ │ -    pub no_run: bool,
│ │ │ +    pub compile_fail: bool,
│ │ │ +    pub no_run: bool,
│ │ │      pub test_type: TestType,
│ │ │ -}
🔬This is a nightly-only experimental API. (test)

Fields§

§name: TestName
🔬This is a nightly-only experimental API. (test)
§ignore: bool
🔬This is a nightly-only experimental API. (test)
§ignore_message: Option<&'static str>
🔬This is a nightly-only experimental API. (test)
§source_file: &'static str
🔬This is a nightly-only experimental API. (test)
§start_line: usize
🔬This is a nightly-only experimental API. (test)
§start_col: usize
🔬This is a nightly-only experimental API. (test)
§end_line: usize
🔬This is a nightly-only experimental API. (test)
§end_col: usize
🔬This is a nightly-only experimental API. (test)
§should_panic: ShouldPanic
🔬This is a nightly-only experimental API. (test)
§compile_fail: bool
🔬This is a nightly-only experimental API. (test)
§no_run: bool
🔬This is a nightly-only experimental API. (test)
§test_type: TestType
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl TestDesc

Source

pub fn padded_name(&self, column_count: usize, align: NamePadding) -> String

🔬This is a nightly-only experimental API. (test)
Source

pub fn test_mode(&self) -> Option<&'static str>

🔬This 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. │ │ │ +}

🔬This is a nightly-only experimental API. (test)

Fields§

§name: TestName
🔬This is a nightly-only experimental API. (test)
§ignore: bool
🔬This is a nightly-only experimental API. (test)
§ignore_message: Option<&'static str>
🔬This is a nightly-only experimental API. (test)
§source_file: &'static str
🔬This is a nightly-only experimental API. (test)
§start_line: usize
🔬This is a nightly-only experimental API. (test)
§start_col: usize
🔬This is a nightly-only experimental API. (test)
§end_line: usize
🔬This is a nightly-only experimental API. (test)
§end_col: usize
🔬This is a nightly-only experimental API. (test)
§should_panic: ShouldPanic
🔬This is a nightly-only experimental API. (test)
§compile_fail: bool
🔬This is a nightly-only experimental API. (test)
§no_run: bool
🔬This is a nightly-only experimental API. (test)
§test_type: TestType
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl TestDesc

Source

pub fn padded_name(&self, column_count: usize, align: NamePadding) -> String

🔬This is a nightly-only experimental API. (test)
Source

pub fn test_mode(&self) -> Option<&'static str>

🔬This 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. │ │ │ Descriptions include “should panic”, “compile fail” and “compile”.

│ │ │

Trait Implementations§

Source§

impl Clone for TestDesc

Source§

fn clone(&self) -> TestDesc

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TestDesc

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

That is, this conversion is whatever the implementation of │ │ │ From<T> for U chooses to do.

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/test/struct.TestDescAndFn.html │ │ │ @@ -1,22 +1,22 @@ │ │ │ TestDescAndFn in test::test - Rust

Struct TestDescAndFn

Source
pub struct TestDescAndFn {
│ │ │      pub desc: TestDesc,
│ │ │      pub testfn: TestFn,
│ │ │  }
🔬This is a nightly-only experimental API. (test)

Fields§

§desc: TestDesc
🔬This is a nightly-only experimental API. (test)
§testfn: TestFn
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl TestDescAndFn

Source

pub const fn new_doctest( │ │ │ - test_name: &'static str, │ │ │ - ignore: bool, │ │ │ - source_file: &'static str, │ │ │ - start_line: usize, │ │ │ - no_run: bool, │ │ │ - should_panic: bool, │ │ │ + test_name: &'static str, │ │ │ + ignore: bool, │ │ │ + source_file: &'static str, │ │ │ + start_line: usize, │ │ │ + no_run: bool, │ │ │ + should_panic: bool, │ │ │ testfn: TestFn, │ │ │ ) -> Self

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Debug for TestDescAndFn

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

That is, this conversion is whatever the implementation of │ │ │ From<T> for U chooses to do.

│ │ │
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/test/struct.TestExecTime.html │ │ │ @@ -1,16 +1,16 @@ │ │ │ TestExecTime in test::test - Rust

Struct TestExecTime

Source
pub struct TestExecTime(pub Duration);
🔬This is a nightly-only experimental API. (test)
Expand description

The measured execution time of a unit test.

│ │ │ -

Tuple Fields§

§0: Duration
🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for TestExecTime

Source§

fn clone(&self) -> TestExecTime

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TestExecTime

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for TestExecTime

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for TestExecTime

Source§

fn eq(&self, other: &TestExecTime) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ +

Tuple Fields§

§0: Duration
🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for TestExecTime

Source§

fn clone(&self) -> TestExecTime

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TestExecTime

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for TestExecTime

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for TestExecTime

Source§

fn eq(&self, other: &TestExecTime) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for TestExecTime

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

That is, this conversion is whatever the implementation of │ │ │ From<T> for U chooses to do.

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where │ │ │ T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/test/struct.TestId.html │ │ │ @@ -1,16 +1,16 @@ │ │ │ -TestId in test::test - Rust

Struct TestId

Source
pub struct TestId(pub usize);
🔬This is a nightly-only experimental API. (test)

Tuple Fields§

§0: usize
🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for TestId

Source§

fn clone(&self) -> TestId

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TestId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for TestId

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where │ │ │ +TestId in test::test - Rust

Struct TestId

Source
pub struct TestId(pub usize);
🔬This is a nightly-only experimental API. (test)

Tuple Fields§

§0: usize
🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for TestId

Source§

fn clone(&self) -> TestId

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TestId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for TestId

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where │ │ │ H: Hasher, │ │ │ - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for TestId

Source§

fn eq(&self, other: &TestId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for TestId

Source§

fn eq(&self, other: &TestId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl Copy for TestId

Source§

impl Eq for TestId

Source§

impl StructuralPartialEq for TestId

Auto Trait Implementations§

§

impl Freeze for TestId

§

impl RefUnwindSafe for TestId

§

impl Send for TestId

§

impl Sync for TestId

§

impl Unpin for TestId

§

impl UnwindSafe for TestId

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

That is, this conversion is whatever the implementation of │ │ │ From<T> for U chooses to do.

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/test/struct.TestOpts.html │ │ │ @@ -1,34 +1,34 @@ │ │ │ TestOpts in test::test - Rust

Struct TestOpts

Source
pub struct TestOpts {
Show 19 fields │ │ │ - pub list: bool, │ │ │ + pub list: bool, │ │ │ pub filters: Vec<String>, │ │ │ - pub filter_exact: bool, │ │ │ - pub force_run_in_process: bool, │ │ │ - pub exclude_should_panic: bool, │ │ │ + pub filter_exact: bool, │ │ │ + pub force_run_in_process: bool, │ │ │ + pub exclude_should_panic: bool, │ │ │ pub run_ignored: RunIgnored, │ │ │ - pub run_tests: bool, │ │ │ - pub bench_benchmarks: bool, │ │ │ - pub logfile: Option<PathBuf>, │ │ │ - pub nocapture: bool, │ │ │ + pub run_tests: bool, │ │ │ + pub bench_benchmarks: bool, │ │ │ + pub logfile: Option<PathBuf>, │ │ │ + pub nocapture: bool, │ │ │ pub color: ColorConfig, │ │ │ pub format: OutputFormat, │ │ │ - pub shuffle: bool, │ │ │ - pub shuffle_seed: Option<u64>, │ │ │ - pub test_threads: Option<usize>, │ │ │ + pub shuffle: bool, │ │ │ + pub shuffle_seed: Option<u64>, │ │ │ + pub test_threads: Option<usize>, │ │ │ pub skip: Vec<String>, │ │ │ pub time_options: Option<TestTimeOptions>, │ │ │ - pub fail_fast: bool, │ │ │ + pub fail_fast: bool, │ │ │ pub options: Options, │ │ │ -
}
🔬This is a nightly-only experimental API. (test)

Fields§

§list: bool
🔬This is a nightly-only experimental API. (test)
§filters: Vec<String>
🔬This is a nightly-only experimental API. (test)
§filter_exact: bool
🔬This is a nightly-only experimental API. (test)
§force_run_in_process: bool
🔬This is a nightly-only experimental API. (test)
§exclude_should_panic: bool
🔬This is a nightly-only experimental API. (test)
§run_ignored: RunIgnored
🔬This is a nightly-only experimental API. (test)
§run_tests: bool
🔬This is a nightly-only experimental API. (test)
§bench_benchmarks: bool
🔬This is a nightly-only experimental API. (test)
§logfile: Option<PathBuf>
🔬This is a nightly-only experimental API. (test)
§nocapture: bool
🔬This is a nightly-only experimental API. (test)
§color: ColorConfig
🔬This is a nightly-only experimental API. (test)
§format: OutputFormat
🔬This is a nightly-only experimental API. (test)
§shuffle: bool
🔬This is a nightly-only experimental API. (test)
§shuffle_seed: Option<u64>
🔬This is a nightly-only experimental API. (test)
§test_threads: Option<usize>
🔬This is a nightly-only experimental API. (test)
§skip: Vec<String>
🔬This is a nightly-only experimental API. (test)
§time_options: Option<TestTimeOptions>
🔬This is a nightly-only experimental API. (test)
§fail_fast: bool
🔬This is a nightly-only experimental API. (test)

Stop at first failing test. │ │ │ +}

🔬This is a nightly-only experimental API. (test)

Fields§

§list: bool
🔬This is a nightly-only experimental API. (test)
§filters: Vec<String>
🔬This is a nightly-only experimental API. (test)
§filter_exact: bool
🔬This is a nightly-only experimental API. (test)
§force_run_in_process: bool
🔬This is a nightly-only experimental API. (test)
§exclude_should_panic: bool
🔬This is a nightly-only experimental API. (test)
§run_ignored: RunIgnored
🔬This is a nightly-only experimental API. (test)
§run_tests: bool
🔬This is a nightly-only experimental API. (test)
§bench_benchmarks: bool
🔬This is a nightly-only experimental API. (test)
§logfile: Option<PathBuf>
🔬This is a nightly-only experimental API. (test)
§nocapture: bool
🔬This is a nightly-only experimental API. (test)
§color: ColorConfig
🔬This is a nightly-only experimental API. (test)
§format: OutputFormat
🔬This is a nightly-only experimental API. (test)
§shuffle: bool
🔬This is a nightly-only experimental API. (test)
§shuffle_seed: Option<u64>
🔬This is a nightly-only experimental API. (test)
§test_threads: Option<usize>
🔬This is a nightly-only experimental API. (test)
§skip: Vec<String>
🔬This is a nightly-only experimental API. (test)
§time_options: Option<TestTimeOptions>
🔬This is a nightly-only experimental API. (test)
§fail_fast: bool
🔬This is a nightly-only experimental API. (test)

Stop at first failing test. │ │ │ May run a few more tests due to threading, but will │ │ │ abort as soon as possible.

│ │ │ -
§options: Options
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl TestOpts

Source

pub fn use_color(&self) -> bool

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Debug for TestOpts

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ +
§options: Options
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl TestOpts

Source

pub fn use_color(&self) -> bool

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Debug for TestOpts

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

That is, this conversion is whatever the implementation of │ │ │ From<T> for U chooses to do.

│ │ │
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/test/test/struct.TestTimeOptions.html │ │ │ @@ -1,22 +1,22 @@ │ │ │ TestTimeOptions in test::test - Rust

Struct TestTimeOptions

Source
pub struct TestTimeOptions {
│ │ │ -    pub error_on_excess: bool,
│ │ │ +    pub error_on_excess: bool,
│ │ │      pub unit_threshold: TimeThreshold,
│ │ │      pub integration_threshold: TimeThreshold,
│ │ │      pub doctest_threshold: TimeThreshold,
│ │ │  }
🔬This is a nightly-only experimental API. (test)
Expand description

Structure with parameters for calculating test execution time.

│ │ │ -

Fields§

§error_on_excess: bool
🔬This is a nightly-only experimental API. (test)

Denotes if the test critical execution time limit excess should be considered │ │ │ +

Fields§

§error_on_excess: bool
🔬This is a nightly-only experimental API. (test)

Denotes if the test critical execution time limit excess should be considered │ │ │ a test failure.

│ │ │ -
§unit_threshold: TimeThreshold
🔬This is a nightly-only experimental API. (test)
§integration_threshold: TimeThreshold
🔬This is a nightly-only experimental API. (test)
§doctest_threshold: TimeThreshold
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl TestTimeOptions

Source

pub fn new_from_env(error_on_excess: bool) -> Self

🔬This is a nightly-only experimental API. (test)
Source

pub fn is_warn(&self, test: &TestDesc, exec_time: &TestExecTime) -> bool

🔬This is a nightly-only experimental API. (test)
Source

pub fn is_critical(&self, test: &TestDesc, exec_time: &TestExecTime) -> bool

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for TestTimeOptions

Source§

fn clone(&self) -> TestTimeOptions

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TestTimeOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TestTimeOptions

Source§

fn default() -> TestTimeOptions

Returns the “default value” for a type. Read more
Source§

impl PartialEq for TestTimeOptions

Source§

fn eq(&self, other: &TestTimeOptions) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ +
§unit_threshold: TimeThreshold
🔬This is a nightly-only experimental API. (test)
§integration_threshold: TimeThreshold
🔬This is a nightly-only experimental API. (test)
§doctest_threshold: TimeThreshold
🔬This is a nightly-only experimental API. (test)

Implementations§

Source§

impl TestTimeOptions

Source

pub fn new_from_env(error_on_excess: bool) -> Self

🔬This is a nightly-only experimental API. (test)
Source

pub fn is_warn(&self, test: &TestDesc, exec_time: &TestExecTime) -> bool

🔬This is a nightly-only experimental API. (test)
Source

pub fn is_critical(&self, test: &TestDesc, exec_time: &TestExecTime) -> bool

🔬This is a nightly-only experimental API. (test)

Trait Implementations§

Source§

impl Clone for TestTimeOptions

Source§

fn clone(&self) -> TestTimeOptions

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TestTimeOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TestTimeOptions

Source§

fn default() -> TestTimeOptions

Returns the “default value” for a type. Read more
Source§

impl PartialEq for TestTimeOptions

Source§

fn eq(&self, other: &TestTimeOptions) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, │ │ │ and should not be overridden without very good reason.
Source§

impl Copy for TestTimeOptions

Source§

impl Eq for TestTimeOptions

Source§

impl StructuralPartialEq for TestTimeOptions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where │ │ │ T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ - T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ - T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │ + T: ?Sized,
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where │ │ │ + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where │ │ │ + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

│ │ │
Source§

impl<T, U> Into<U> for T
where │ │ │ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

│ │ │

That is, this conversion is whatever the implementation of │ │ │ From<T> for U chooses to do.

│ │ │
Source§

impl<T> ToOwned for T
where │ │ │ - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where │ │ │ U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where │ │ │ U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
│ │ ├── ./usr/share/doc/rust-doc/html/trait.impl/core/cmp/trait.PartialEq.js │ │ │ ├── js-beautify {} │ │ │ │ @@ -87,16 +87,16 @@ │ │ │ │ ["impl<const N: usize> PartialEq<[u8; N]> for ByteString"] │ │ │ │ ]], │ │ │ │ ["core", []], │ │ │ │ ["proc_macro", [ │ │ │ │ ["impl PartialEq for ConversionErrorKind"], │ │ │ │ ["impl PartialEq for Delimiter"], │ │ │ │ ["impl PartialEq for Spacing"], │ │ │ │ - ["impl PartialEq<char> for Punct"], │ │ │ │ - ["impl PartialEq<Punct> for char"] │ │ │ │ + ["impl PartialEq<char> for Punct"], │ │ │ │ + ["impl PartialEq<Punct> for char"] │ │ │ │ ]], │ │ │ │ ["std", [ │ │ │ │ ["impl PartialEq for BacktraceStatus"], │ │ │ │ ["impl PartialEq for VarError"], │ │ │ │ ["impl PartialEq for ErrorKind"], │ │ │ │ ["impl PartialEq for SeekFrom"], │ │ │ │ ["impl PartialEq for Shutdown"], │ │ │ │ @@ -208,8 +208,8 @@ │ │ │ │ ]); │ │ │ │ if (window.register_implementors) { │ │ │ │ window.register_implementors(implementors); │ │ │ │ } else { │ │ │ │ window.pending_implementors = implementors; │ │ │ │ } │ │ │ │ })() │ │ │ │ -//{"start":57,"fragment_lengths":[38889,12,1328,31423,3233]} │ │ │ │ +//{"start":57,"fragment_lengths":[38889,12,1394,31423,3233]} │ │ ├── ./usr/share/doc/rust-doc/html/tutorial.html │ │ │ @@ -2,15 +2,15 @@ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ The Rust Tutorial │ │ │ │ │ │ - │ │ │ + │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │