Skip to content

Releases: threeal/result

Version 0.1.0

14 Mar 10:08
47f86ad
Compare
Choose a tag to compare

Library Changes

  • Add 2 result classes:
    • Result, for returning and propagating an error (#4).
      • Use is_ok to check if it does not contain an error.
      • Use is_err and unwrap_err to check if it contains an error.
    • ResultOf<T>, for returning and propagating a value or an error (#5, #16).
      • Use is_ok and unwrap to check if it contains a value.
      • Use is_err and unwrap_err to check if it contains an error .
  • Allow error result creation using:
    • C++ string (std::string) (#4, #6).
    • C-style string (const char*) (#4, #6).
    • Output stream (using << operator) (#22).
  • Allow type casting from ResultOf<T> to Result or other ResultOf<T> (#15).

Development Changes

Integration Changes