Skip to main content
Module

x/optio/spec.ts>Some

Minimum option type port of Rust
Latest
interface Some
implements Container
import { type Some } from "https://deno.land/x/optio@1.0.0/spec.ts";

The Some API.

Methods

getter
type(): OptionType.Some
getter
get(): T

Return contained T.

variable Some
import { Some } from "https://deno.land/x/optio@1.0.0/spec.ts";

Some constructor.

Examples

Example 1

import { Some } from "https://deno.land/x/optio/mod.ts";
const some = Some(0);