package eio-trace

  1. Overview
  2. Docs
type 'a interval = {
  1. start : float;
  2. stop : float;
  3. value : 'a;
}
val compare_start : 'a interval -> 'b interval -> int
type 'a tree =
  1. | Empty
  2. | Node of {
    1. v : 'a interval;
    2. left : 'a tree;
    3. right : 'a tree;
    4. mutable subtree_stop : float;
    }
val pp_interval : Stdlib.Format.formatter -> 'a interval -> unit
val dump : Stdlib.Format.formatter -> 'a tree -> unit
val max_stop : 'a tree -> float -> float
val tree_of_slice : 'a interval array -> int -> int -> 'a tree
val create : 'a interval list -> 'a tree
val overlaps : 'a interval -> float -> float -> bool
val iter_overlaps : ('a -> unit) -> float -> float -> 'a tree -> unit
OCaml

Innovation. Community. Security.