Result.map Example Err(..) meaning?

⚓ Rust    📅 2026-05-21    👤 surdeus    👁️ 2      

surdeus

Reading the Example for Result.map i stumbled upon the Err Variant

let line = "1\n2\n3\n4\n";

for num in line.lines() {
    match num.parse::<i32>().map(|i| i * 2) {
        Ok(n) => println!("{n}"),
        Err(..) => {}
    }
}

What does Err(..) mean here?
.. = RangeFull?

4 posts - 4 participants

Read full topic

🏷️ Rust_feed