Skip to main content
Module

x/resulty/mod.ts

Provides simple, Rust-like Result and Option objects for Deno.
Latest
import * as resulty from "https://deno.land/x/resulty@0.4.0/mod.ts";

Functions

Returns the Err result containing the error message or value when the parent method fails to execute.

Returns the None option when no value is available to return.

Returns the Ok result containing the result value on successful execution of the parent method.

Returns the Some option containing the value to be returned.