package stdune

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Option.UnboxedSource

A poor man's unboxed option type. The value stored must not be immediate, unless it is a non-negative integer. In particular, unboxed options cannot be nested.

Sourcetype 'a t
Sourceval none : 'a t
Sourceval some : 'a -> 'a t
Sourceval is_none : 'a t -> bool
Sourceval is_some : 'a t -> bool
Sourceval value_exn : 'a t -> 'a
Sourceval to_option : 'a t -> 'a option
Sourceval iter : 'a t -> f:('a -> unit) -> unit
Sourceval match_ : 'a t -> none:(unit -> 'b) -> some:('a -> 'b) -> 'b
Sourceval to_dyn : ('a -> Dyn.t) -> 'a t -> Dyn.t
OCaml

Innovation. Community. Security.