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());
38 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
1015
August 10, 2022
Any (not empty) method for Vec
8
1466
June 7, 2023
The in and !in operators?
language design
41
5726
March 25, 2019
Micro-feature: if in vec![]
language design
37
2486
August 26, 2022
Clippy suggestion `range.contains` may cause Yoda condition - is my fix a good idea?
libs
34
2852
September 21, 2022