Beginner
Rust
Q13 / 100
What is Result<T, E>?
Correct! Well done.
Incorrect.
The correct answer is B) A type representing either success Ok(T) or failure Err(E)
B
Correct Answer
A type representing either success Ok(T) or failure Err(E)
Explanation
Result is used for operations that can fail: fn open(path: &str) -> Result<File, io::Error>. Callers must handle both Ok and Err cases.
Progress
13/100