Skip to main content
Module

x/result_js/mod.ts>Err

Minimum result type port of Rust
Latest
interface Err
implements Container
import { type Err } from "https://deno.land/x/result_js@2.0.0/mod.ts";

The Err API.

Methods

getter
type(): ResultType.Err
getter
get(): E
variable Err
import { Err } from "https://deno.land/x/result_js@2.0.0/mod.ts";

Err constructor.

Examples

Example 1

import { Err } from "https://deno.land/x/result_js/spec.ts";
const err = Err(0);