mirror of
https://github.com/c-cube/sidekick.git
synced 2026-01-24 02:16:41 -05:00
improve Int_id for tracing
This commit is contained in:
parent
2726a3afe2
commit
4b359a40f2
2 changed files with 3 additions and 5 deletions
|
|
@ -18,10 +18,8 @@
|
|||
|
||||
(** {2 Exports} *)
|
||||
|
||||
module Entry_view = Entry_view
|
||||
module Sink = Sink
|
||||
module Source = Source
|
||||
module Entry_id = Entry_id
|
||||
|
||||
type entry_id = Entry_id.t
|
||||
type entry_view = Entry_view.t = ..
|
||||
|
|
|
|||
|
|
@ -3,9 +3,8 @@
|
|||
module type S = sig
|
||||
type t = private int
|
||||
|
||||
val equal : t -> t -> bool
|
||||
val compare : t -> t -> int
|
||||
val hash : t -> int
|
||||
include Sidekick_sigs.EQ_ORD_HASH_PRINT with type t := t
|
||||
|
||||
val to_int : t -> int
|
||||
val of_int_unsafe : int -> t
|
||||
end
|
||||
|
|
@ -17,6 +16,7 @@ module Make () = struct
|
|||
let equal : t -> t -> bool = ( = )
|
||||
let compare : t -> t -> int = compare
|
||||
let hash = CCHash.int
|
||||
let pp = CCFormat.int
|
||||
let[@inline] to_int i = i
|
||||
|
||||
external of_int_unsafe : int -> t = "%identity"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue