Module Core_kernel__.Either
type ('f, 's) t = ('f, 's) Base.Either.t = | First of 'f |
| Second of 's |
include Bin_prot.Binable.S2 with type ('f, 's) t := ('f, 's) t
type ('a, 'b) t
val bin_shape_t : Bin_prot.Shape.t -> Bin_prot.Shape.t -> Bin_prot.Shape.tval bin_size_t : ('a, 'b, ('a, 'b) t) Bin_prot.Size.sizer2val bin_write_t : ('a, 'b, ('a, 'b) t) Bin_prot.Write.writer2val bin_read_t : ('a, 'b, ('a, 'b) t) Bin_prot.Read.reader2val __bin_read_t__ : ('a, 'b, int -> ('a, 'b) t) Bin_prot.Read.reader2val bin_writer_t : ('a, 'b, ('a, 'b) t) Bin_prot.Type_class.S2.writerval bin_reader_t : ('a, 'b, ('a, 'b) t) Bin_prot.Type_class.S2.readerval bin_t : ('a, 'b, ('a, 'b) t) Bin_prot.Type_class.S2.t
include module type of sig ... end with type ('f, 's) t := ('f, 's) t
type ('f, 's) t = ('f, 's) Base__Either.t = | First of 'f |
| Second of 's |
val compare : ('f -> 'f -> int) -> ('s -> 's -> int) -> ('f, 's) t -> ('f, 's) t -> intval hash_fold_t : (Base.Hash.state -> 'f -> Base.Hash.state) -> (Base.Hash.state -> 's -> Base.Hash.state) -> Base.Hash.state -> ('f, 's) t -> Base.Hash.stateval t_of_sexp : (Base.Sexp.t -> 'a) -> (Base.Sexp.t -> 'b) -> Base.Sexp.t -> ('a, 'b) tval sexp_of_t : ('a -> Base.Sexp.t) -> ('b -> Base.Sexp.t) -> ('a, 'b) t -> Base.Sexp.tval invariant : 'a Base__.Invariant_intf.inv -> 'b Base__.Invariant_intf.inv -> ('a, 'b) t Base__.Invariant_intf.invval swap : ('f, 's) t -> ('s, 'f) tval value : ('a, 'a) t -> 'aval iter : ('a, 'b) t -> first:('a -> unit) -> second:('b -> unit) -> unitval value_map : ('a, 'b) t -> first:('a -> 'c) -> second:('b -> 'c) -> 'cval map : ('a, 'b) t -> first:('a -> 'c) -> second:('b -> 'd) -> ('c, 'd) tval equal : ('f -> 'f -> bool) -> ('s -> 's -> bool) -> ('f, 's) t -> ('f, 's) t -> bool
val is_first : ('a, 'b) t -> boolval is_second : ('a, 'b) t -> boolval first : 'f -> ('f, 'a) tval second : 's -> ('a, 's) t