debtmap 0.16.3

Code complexity and technical debt analyzer
Documentation
1
2
3
4
5
fn parse_until_error(items: Vec<String>) -> Vec<i32> {
    items.into_iter()
        .map_while(|s| s.parse::<i32>().ok())
        .collect()
}