Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

Result

The outcome of something that can fail: Ok(value) or Err(error).

Result<T, E> is an enum with variants Ok(T) and Err(E) for operations that can fail.

Examples

  • "42".parse::<u8>() gives Ok(42); "300".parse::<u8>() gives an Err of kind PosOverflow, because 300 doesn't fit in a u8.

Read the full section →