Rust Internals
The is_not_empty() method as more clearly alternative for !is_empty()
libs
Nemo157
July 22, 2019, 12:16pm
8
use std::ops::Not; println!("{:?}", true.not());
37 Likes
Should we add `Iterator::none`?
Ergonomic opposite of `matches!`
show post in topic
Related topics
Topic
Replies
Views
Activity
Add `is_some` method to Vec, String etc
libs
6
922
August 10, 2022
Any (not empty) method for Vec
8
963
June 7, 2023
Micro-feature: if in vec![]
language design
37
2318
August 26, 2022
Pre-RFC: None if string is empty
language design
5
5749
March 25, 2019
Impl Not for Result
libs
34
1968
July 5, 2021