package core_kernel

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

Source file hash_set_intf.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
open! Import
module Binable = Binable0
include Base.Hash_set

module type S_plain = sig
  type elt
  type 'a hash_set
  type t = elt hash_set [@@deriving sexp_of]
  type 'a t_ = t
  type 'a elt_ = elt

  include
    Creators_generic
    with type 'a t := 'a t_
    with type 'a elt := 'a elt_
    with type ('a, 'z) create_options :=
      ('a, 'z) create_options_without_first_class_module

  module Provide_of_sexp
      (X : sig
         type t [@@deriving of_sexp]
       end
       with type t := elt) : sig
    type t [@@deriving of_sexp]
  end
  with type t := t

  module Provide_bin_io
      (X : sig
         type t [@@deriving bin_io]
       end
       with type t := elt) : sig
    type t [@@deriving bin_io]
  end
  with type t := t
end

module type S = sig
  include S_plain

  include sig
    type t [@@deriving of_sexp]
  end
  with type t := t
end

module type S_binable = sig
  include S
  include Binable.S with type t := t
end

type ('key, 'z) create_options_with_hashable_required =
  ('key, unit, 'z) Hashtbl_intf.create_options_with_hashable

module type Using_hashable = sig
  include Accessors with type 'a t = 'a t with type 'a elt := 'a elt

  include
    Creators_generic
    with type 'a t := 'a t
    with type 'a elt = 'a
    with type ('key, 'z) create_options :=
      ('key, 'z) create_options_with_hashable_required
end