Skip to main content
Latest
interface Option
Re-export
import { type Option } from "https://deno.land/x/rustility@v0.0.3/mod.ts";

Index Signatures

[identifier: OPTION_IDENTIFIER | symbol]: "option"

Methods

isSome(): boolean
isNone(): boolean
unwrap(): T | never
unwrapOr<D>(val: D): D | T
unwrapOrElse<R>(fnOnce: () => R): T | R