Garden 🌻

Result type

Result represents a value that succeeded, with Ok(...), or failed, with Err(...).

enum Result<T, E> {
  Ok(T),
  Err(E),
}

For example, reading a file might return Ok("contents of file") or Err("file did not exist").