package core

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

Module Core.EitherSource

This module extends Base.Either.

Sourcetype ('f, 's) t = ('f, 's) Base.Either.t =
  1. | First of 'f
  2. | Second of 's
include Bin_prot.Binable.S2 with type ('f, 's) t := ('f, 's) t
Sourceval bin_size_t : ('a, 'b, ('a, 'b) t) Bin_prot.Size.sizer2
Sourceval bin_write_t : ('a, 'b, ('a, 'b) t) Bin_prot.Write.writer2
Sourceval bin_read_t : ('a, 'b, ('a, 'b) t) Bin_prot.Read.reader2
Sourceval __bin_read_t__ : ('a, 'b, int -> ('a, 'b) t) Bin_prot.Read.reader2
Sourceval bin_writer_t : ('a, 'b, ('a, 'b) t) Bin_prot.Type_class.S2.writer
Sourceval bin_reader_t : ('a, 'b, ('a, 'b) t) Bin_prot.Type_class.S2.reader
Sourceval bin_t : ('a, 'b, ('a, 'b) t) Bin_prot.Type_class.S2.t
Sourceval compare : ('a -> 'a -> int) -> ('b -> 'b -> int) -> ('a, 'b) t -> ('a, 'b) t -> int
Sourceval hash_fold_t : (Base.Hash.state -> 'a -> Base.Hash.state) -> (Base.Hash.state -> 'b -> Base.Hash.state) -> Base.Hash.state -> ('a, 'b) t -> Base.Hash.state
include Sexplib0.Sexpable.S2 with type ('f, 's) t := ('f, 's) t
Sourceval t_of_sexp : (Sexplib0.Sexp.t -> 'a) -> (Sexplib0.Sexp.t -> 'b) -> Sexplib0.Sexp.t -> ('a, 'b) t
Sourceval sexp_of_t : ('a -> Sexplib0.Sexp.t) -> ('b -> Sexplib0.Sexp.t) -> ('a, 'b) t -> Sexplib0.Sexp.t
include Base.Invariant.S2 with type ('a, 'b) t := ('a, 'b) t
Sourceval invariant : ('a -> unit) -> ('b -> unit) -> ('a, 'b) t -> unit
Sourceval swap : ('f, 's) t -> ('s, 'f) t
Sourceval value : ('a, 'a) t -> 'a
Sourceval iter : ('a, 'b) t -> first:('a -> unit) -> second:('b -> unit) -> unit
Sourceval value_map : ('a, 'b) t -> first:('a -> 'c) -> second:('b -> 'c) -> 'c
Sourceval map : ('a, 'b) t -> first:('a -> 'c) -> second:('b -> 'd) -> ('c, 'd) t
Sourceval equal : ('f -> 'f -> bool) -> ('s -> 's -> bool) -> ('f, 's) t -> ('f, 's) t -> bool
Sourcemodule type Focused = sig ... end
Sourcemodule First : Focused with type ('a, 'b) t = ('a, 'b) t
Sourcemodule Second : Focused with type ('a, 'b) t = ('b, 'a) t
Sourceval is_first : (_, _) t -> bool
Sourceval is_second : (_, _) t -> bool
Sourceval first : 'f -> ('f, _) t

first and second are First.return and Second.return.

Sourceval second : 's -> (_, 's) t
include Comparator.Derived2 with type ('a, 'b) t := ('a, 'b) t
Sourcetype (!'cmp_a, !'cmp_b) comparator_witness
Sourceval comparator : ('a, 'cmp_a) Base.Comparator.comparator -> ('b, 'cmp_b) Base.Comparator.comparator -> (('a, 'b) t, ('cmp_a, 'cmp_b) comparator_witness) Base.Comparator.comparator
include Quickcheckable.S2 with type ('a, 'b) t := ('a, 'b) t
Sourcemodule Stable : sig ... end
OCaml

Innovation. Community. Security.