doc.rust-lang.org/std/primitive.unit.html
Preview meta tags from the doc.rust-lang.org website.
Linked Hostnames
2General Meta Tags
6- titleunit - Rust
- charsetutf-8
- viewportwidth=device-width, initial-scale=1.0
- generatorrustdoc
- descriptionThe `()` type, also called “unit”.
Link Tags
4- alternate icon../static.files/favicon-32x32-6580c154.png
- icon../static.files/favicon-044be391.svg
- stylesheet../static.files/normalize-9960930a.css
- stylesheet../static.files/rustdoc-84e720fa.css
Links
5- https://github.com/rust-lang/rust/issues/126799
- https://github.com/rust-lang/rust/issues/72631
- https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++fn+long()+-%3E+()+%7B%7D%0A++++%0A++++fn+short()+%7B%7D%0A%7D&edition=2024
- https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++fn+returns_i64()+-%3E+i64+%7B%0A++++++++1i64%0A++++%7D%0A++++fn+returns_unit()+%7B%0A++++++++1i64;%0A++++%7D%0A++++%0A++++let+is_i64+=+%7B%0A++++++++returns_i64()%0A++++%7D;%0A++++let+is_unit+=+%7B%0A++++++++returns_i64();%0A++++%7D;%0A%7D&edition=2024
- https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++use+std::io::*;%0A++++let+data+=+vec!%5B1,+2,+3,+4,+5%5D;%0A++++let+res:+Result%3C()%3E+=+data.iter()%0A++++++++.map(%7Cx%7C+writeln!(stdout(),+%22%7Bx%7D%22))%0A++++++++.collect();%0A++++assert!(res.is_ok());%0A%7D&edition=2024