Rust Internals
Array::map annotate with #[must_use]
libs
scottmcm
April 26, 2025, 10:35pm
11
You might be interested in this recent thread:
4 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Fallible version of `array::map` (`array::try_map`)
language design
3
789
September 10, 2021
Use of #[must_use] in the standard library
libs
18
2866
January 13, 2022
Idea: Fallible iterator mapping with `try_map`
language design
11
4879
May 17, 2022
Pre-RFC: `#[must_use]` on a Result's Ok type
13
1069
March 25, 2019
Iterator::map makes note that map is lazy. Option::map and Result::map aren't lazy but this contrast isn't noted in the documentation
documentation
5
1757
February 22, 2022