Converts into a string for debug. It is not safe for serialization.
The string form.
import { err, ok, toString } from "./result.ts";import { assertEquals } from "../deps.ts";assertEquals(toString(ok(24)), "ok(24)");assertEquals(toString(err("hoge")), "err(hoge)"); Copy
import { err, ok, toString } from "./result.ts";import { assertEquals } from "../deps.ts";assertEquals(toString(ok(24)), "ok(24)");assertEquals(toString(err("hoge")), "err(hoge)");
Generated using TypeDoc
Converts into a string for debug. It is not safe for serialization.