rusted library

Classes

Err<O, E>
Creates the Ok value of a Result
Ok<O, E>
Creates the Ok value of a Result
Result<O, E>
A Result is an object which can hold two possible values, an Ok or an Err.

Functions

err<O, E>(E val) Result<O, E>
Use when you need to return a type of Result, but can't specify the return type.
ok<O, E>(O val) Result<O, E>
Use when you need to return a type of Result, but can't specify the return type.