class_docstr: A minimal implementation of a rusty Result monad.
  See https://doc.rust-lang.org/std/result/enum.Result.html for more information.
class_docstr_tok: ["A","minimal","implementation","of","a","rusty","Result","monad",".","See","https",":","\/\/doc.rust-lang.org\/std\/result\/enum.Result.html","for","more","information","."]
docstr: Maps a Result[T, E] to Result[U, E] by applying a function to a contained Ok
  value, leaving an Err value untouched. This function can be used to compose
  the results of two functions.
code: def map(self, op: Callable[[T], U]) -> Result[U, E]:
      """
      Maps a Result[T, E] to Result[U, E] by applying a function to a contained Ok
      value, leaving an Err value untouched. This function can be used to compose
      the results of two functions.
      """
  
      pass
  
imports: from __future__ import annotations
  from abc import ABC, abstractmethod, abstractproperty
  from typing import Any, Callable, cast, Generic, NoReturn, Optional, TypeVar, Union
label_desc: Use image node_id 6 for calling the Result obj's underlying member method code with example usage: obj.map(op) without return types