jon.recoil.org

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.S_local2 with type ('f, 's) t := ('f, 's) Core.Either.t
include Bin_prot.Binable.S2 with type ('f, 's) t := ('f, 's) Core.Either.t
Sourceval bin_size_t : ('a, 'b, ('a, 'b) Core.Either.t) Bin_prot.Size.sizer2
Sourceval bin_write_t : ('a, 'b, ('a, 'b) Core.Either.t) Bin_prot.Write.writer2
Sourceval bin_read_t : ('a, 'b, ('a, 'b) Core.Either.t) Bin_prot.Read.reader2
Sourceval __bin_read_t__ : ('a, 'b, int -> ('a, 'b) Core.Either.t) Bin_prot.Read.reader2
Sourceval bin_writer_t : ('a, 'b, ('a, 'b) Core.Either.t) Bin_prot.Type_class.S2.writer
Sourceval bin_reader_t : ('a, 'b, ('a, 'b) Core.Either.t) Bin_prot.Type_class.S2.reader
Sourceval bin_t : ('a, 'b, ('a, 'b) Core.Either.t) Bin_prot.Type_class.S2.t
Sourceval bin_size_t__local : ('a, 'b, ('a, 'b) Core.Either.t) Bin_prot.Size.sizer_local2
Sourceval bin_write_t__local : ('a, 'b, ('a, 'b) Core.Either.t) Bin_prot.Write.writer_local2
Sourceval compare : ('a -> 'a -> int) -> ('b -> 'b -> int) -> ('a, 'b) Core.Either.t -> ('a, 'b) Core.Either.t -> int
include Sexplib0.Sexpable.S2 with type ('f, 's) t := ('f, 's) Core.Either.t
Sourceval t_of_sexp : (Sexplib0.Sexp.t -> 'a) -> (Sexplib0.Sexp.t -> 'b) -> Sexplib0.Sexp.t -> ('a, 'b) Core.Either.t
Sourceval sexp_of_t : ('a -> Sexplib0.Sexp.t) -> ('b -> Sexplib0.Sexp.t) -> ('a, 'b) Core.Either.t -> Sexplib0.Sexp.t
include Base.Invariant.S2 with type ('a, 'b) t := ('a, 'b) Core.Either.t
Sourceval invariant : ('a -> unit) -> ('b -> unit) -> ('a, 'b) Core.Either.t -> unit
Sourceval swap : ('f, 's) Core.Either.t -> ('s, 'f) Core.Either.t
Sourceval value : ('a, 'a) Core.Either.t -> 'a
Sourceval iter : ('a, 'b) Core.Either.t -> first:('a -> unit) -> second:('b -> unit) -> unit
Sourceval value_map : ('a, 'b) Core.Either.t -> first:('a -> 'c) -> second:('b -> 'c) -> 'c
Sourceval map : ('a, 'b) Core.Either.t -> first:('a -> 'c) -> second:('b -> 'd) -> ('c, 'd) Core.Either.t
Sourceval equal : ('f -> 'f -> bool) -> ('s -> 's -> bool) -> ('f, 's) Core.Either.t -> ('f, 's) Core.Either.t -> bool
Sourceval local_equal : ('f -> 'f -> bool) -> ('s -> 's -> bool) -> ('f, 's) Core.Either.t -> ('f, 's) Core.Either.t -> bool
Sourcemodule type Focused = Base.Either.Focused
Sourcemodule Second = Base.Either.Second
Sourceval is_first : (_, _) Core.Either.t -> bool
Sourceval is_second : (_, _) Core.Either.t -> bool
Sourceval first : 'f -> ('f, _) Core.Either.t

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

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