package async_unix

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include Core_kernel.Map_intf.Make_S_plain_tree(Core__.Core_unix.Cidr.Map.Key).S
type 'a t = (Core__.Core_unix.Cidr.t, 'a, Core__.Core_unix.Cidr.comparator_witness) Core_kernel__.Map_intf.Tree.t
include sig ... end
include Core_kernel.Map_intf.Creators_and_accessors1 with type 'a t := 'a t with type 'a tree := 'a t with type key := Core__.Core_unix.Cidr.t
include Core_kernel.Map_intf.Creators1 with type 'a t := 'a t with type 'a tree := 'a t with type key := Core__.Core_unix.Cidr.t
val empty : 'a t
val singleton : Core__.Core_unix.Cidr.t -> 'a -> 'a t
val of_alist : (Core__.Core_unix.Cidr.t * 'a) list -> [ `Duplicate_key of Core__.Core_unix.Cidr.t | `Ok of 'a t ]
val of_alist_or_error : (Core__.Core_unix.Cidr.t * 'a) list -> 'a t Base__.Or_error.t
val of_alist_exn : (Core__.Core_unix.Cidr.t * 'a) list -> 'a t
val of_alist_multi : (Core__.Core_unix.Cidr.t * 'a) list -> 'a list t
val of_alist_fold : (Core__.Core_unix.Cidr.t * 'a) list -> init:'b -> f:('b -> 'a -> 'b) -> 'b t
val of_alist_reduce : (Core__.Core_unix.Cidr.t * 'a) list -> f:('a -> 'a -> 'a) -> 'a t
val of_sorted_array : (Core__.Core_unix.Cidr.t * 'a) array -> 'a t Base__.Or_error.t
val of_sorted_array_unchecked : (Core__.Core_unix.Cidr.t * 'a) array -> 'a t
val of_increasing_iterator_unchecked : len:int -> f:(int -> Core__.Core_unix.Cidr.t * 'a) -> 'a t
val of_increasing_sequence : (Core__.Core_unix.Cidr.t * 'a) Base__.Sequence.t -> 'a t Base__.Or_error.t
val of_iteri : iteri:(f:(key:Core__.Core_unix.Cidr.t -> data:'v -> unit) -> unit) -> [ `Duplicate_key of Core__.Core_unix.Cidr.t | `Ok of 'v t ]
val of_tree : 'a t -> 'a t
val of_hashtbl_exn : (Core__.Core_unix.Cidr.t, 'a) Core_kernel.Hashtbl.t -> 'a t
include Core_kernel.Map_intf.Accessors1 with type 'a t := 'a t with type 'a tree := 'a t with type key := Core__.Core_unix.Cidr.t
val invariants : 'a t -> bool
val is_empty : 'a t -> bool
val length : 'a t -> int
val add : 'a t -> key:Core__.Core_unix.Cidr.t -> data:'a -> 'a t
  • deprecated [since 2017-11] Use [set] instead
val set : 'a t -> key:Core__.Core_unix.Cidr.t -> data:'a -> 'a t
val add_multi : 'a list t -> key:Core__.Core_unix.Cidr.t -> data:'a -> 'a list t
val remove_multi : 'a list t -> Core__.Core_unix.Cidr.t -> 'a list t
val find_multi : 'a list t -> Core__.Core_unix.Cidr.t -> 'a list
val change : 'a t -> Core__.Core_unix.Cidr.t -> f:('a option -> 'a option) -> 'a t
val update : 'a t -> Core__.Core_unix.Cidr.t -> f:('a option -> 'a) -> 'a t
val find : 'a t -> Core__.Core_unix.Cidr.t -> 'a option
val find_exn : 'a t -> Core__.Core_unix.Cidr.t -> 'a
val remove : 'a t -> Core__.Core_unix.Cidr.t -> 'a t
val mem : 'a t -> Core__.Core_unix.Cidr.t -> bool
val iter_keys : 'a t -> f:(Core__.Core_unix.Cidr.t -> unit) -> unit
val iter : 'a t -> f:('a -> unit) -> unit
val iteri : 'a t -> f:(key:Core__.Core_unix.Cidr.t -> data:'a -> unit) -> unit
val iter2 : 'a t -> 'b t -> f: (key:Core__.Core_unix.Cidr.t -> data:[ `Both of 'a * 'b | `Left of 'a | `Right of 'b ] -> unit) -> unit
val map : 'a t -> f:('a -> 'b) -> 'b t
val mapi : 'a t -> f:(key:Core__.Core_unix.Cidr.t -> data:'a -> 'b) -> 'b t
val fold : 'a t -> init:'b -> f:(key:Core__.Core_unix.Cidr.t -> data:'a -> 'b -> 'b) -> 'b
val fold_right : 'a t -> init:'b -> f:(key:Core__.Core_unix.Cidr.t -> data:'a -> 'b -> 'b) -> 'b
val fold2 : 'a t -> 'b t -> init:'c -> f: (key:Core__.Core_unix.Cidr.t -> data:[ `Both of 'a * 'b | `Left of 'a | `Right of 'b ] -> 'c -> 'c) -> 'c
val filter_keys : 'a t -> f:(Core__.Core_unix.Cidr.t -> bool) -> 'a t
val filter : 'a t -> f:('a -> bool) -> 'a t
val filteri : 'a t -> f:(key:Core__.Core_unix.Cidr.t -> data:'a -> bool) -> 'a t
val filter_map : 'a t -> f:('a -> 'b option) -> 'b t
val filter_mapi : 'a t -> f:(key:Core__.Core_unix.Cidr.t -> data:'a -> 'b option) -> 'b t
val partition_mapi : 'a t -> f:(key:Core__.Core_unix.Cidr.t -> data:'a -> [ `Fst of 'b | `Snd of 'c ]) -> 'b t * 'c t
val partition_map : 'a t -> f:('a -> [ `Fst of 'b | `Snd of 'c ]) -> 'b t * 'c t
val partitioni_tf : 'a t -> f:(key:Core__.Core_unix.Cidr.t -> data:'a -> bool) -> 'a t * 'a t
val partition_tf : 'a t -> f:('a -> bool) -> 'a t * 'a t
val compare_direct : ('a -> 'a -> int) -> 'a t -> 'a t -> int
val equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
val keys : 'a t -> Core__.Core_unix.Cidr.t list
val data : 'a t -> 'a list
val to_alist : ?key_order:[ `Decreasing | `Increasing ] -> 'a t -> (Core__.Core_unix.Cidr.t * 'a) list
val validate : name:(Core__.Core_unix.Cidr.t -> string) -> 'a Base__.Validate.check -> 'a t Base__.Validate.check
val merge : 'a t -> 'b t -> f: (key:Core__.Core_unix.Cidr.t -> [ `Both of 'a * 'b | `Left of 'a | `Right of 'b ] -> 'c option) -> 'c t
val symmetric_diff : 'a t -> 'a t -> data_equal:('a -> 'a -> bool) -> (Core__.Core_unix.Cidr.t, 'a) Core_kernel__.Map_intf.Map_intf.Symmetric_diff_element.t Base__.Sequence.t
val min_elt : 'a t -> (Core__.Core_unix.Cidr.t * 'a) option
val min_elt_exn : 'a t -> Core__.Core_unix.Cidr.t * 'a
val max_elt : 'a t -> (Core__.Core_unix.Cidr.t * 'a) option
val max_elt_exn : 'a t -> Core__.Core_unix.Cidr.t * 'a
val for_all : 'a t -> f:('a -> bool) -> bool
val for_alli : 'a t -> f:(key:Core__.Core_unix.Cidr.t -> data:'a -> bool) -> bool
val exists : 'a t -> f:('a -> bool) -> bool
val existsi : 'a t -> f:(key:Core__.Core_unix.Cidr.t -> data:'a -> bool) -> bool
val count : 'a t -> f:('a -> bool) -> int
val counti : 'a t -> f:(key:Core__.Core_unix.Cidr.t -> data:'a -> bool) -> int
val split : 'a t -> Core__.Core_unix.Cidr.t -> 'a t * (Core__.Core_unix.Cidr.t * 'a) option * 'a t
val append : lower_part:'a t -> upper_part:'a t -> [ `Ok of 'a t | `Overlapping_key_ranges ]
val subrange : 'a t -> lower_bound:Core__.Core_unix.Cidr.t Base__.Maybe_bound.t -> upper_bound:Core__.Core_unix.Cidr.t Base__.Maybe_bound.t -> 'a t
val fold_range_inclusive : 'a t -> min:Core__.Core_unix.Cidr.t -> max:Core__.Core_unix.Cidr.t -> init:'b -> f:(key:Core__.Core_unix.Cidr.t -> data:'a -> 'b -> 'b) -> 'b
val range_to_alist : 'a t -> min:Core__.Core_unix.Cidr.t -> max:Core__.Core_unix.Cidr.t -> (Core__.Core_unix.Cidr.t * 'a) list
val closest_key : 'a t -> [ `Greater_or_equal_to | `Greater_than | `Less_or_equal_to | `Less_than ] -> Core__.Core_unix.Cidr.t -> (Core__.Core_unix.Cidr.t * 'a) option
val nth : 'a t -> int -> (Core__.Core_unix.Cidr.t * 'a) option
val nth_exn : 'a t -> int -> Core__.Core_unix.Cidr.t * 'a
val rank : 'a t -> Core__.Core_unix.Cidr.t -> int option
val to_tree : 'a t -> 'a t
val to_sequence : ?order:[ `Decreasing_key | `Increasing_key ] -> ?keys_greater_or_equal_to:Core__.Core_unix.Cidr.t -> ?keys_less_or_equal_to:Core__.Core_unix.Cidr.t -> 'a t -> (Core__.Core_unix.Cidr.t * 'a) Base__.Sequence.t
module Provide_of_sexp (K : sig ... end) : sig ... end
include Core_kernel.Sexpable.S1 with type 'a t := 'a t
val t_of_sexp : (Base__.Sexplib.Sexp.t -> 'a) -> Base__.Sexplib.Sexp.t -> 'a t
val sexp_of_t : ('a -> Base__.Sexplib.Sexp.t) -> 'a t -> Base__.Sexplib.Sexp.t
OCaml

Innovation. Community. Security.