Rust · Class
Result
Rust's Result<T, E> represents either a successful value or an error. It is used to return and propagate expected, recoverable failures.
Last updated
- Since
- 1.0.0
Syntax
pub enum Result<T, E> {
Ok(T),
Err(E),
}In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Optionstd::io::Resultand_thenor_elseexpectunwrapcollect