2016-09-08 21:13:10 +04:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
2017-11-14 03:36:14 +04:00
|
|
|
(* Copyright (c) 2014 - 2017. *)
|
2016-09-08 21:13:10 +04:00
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
2017-11-27 09:13:12 +04:00
|
|
|
module type T = sig
|
2016-09-08 21:13:10 +04:00
|
|
|
|
2017-11-27 09:13:12 +04:00
|
|
|
type t
|
2017-02-24 20:17:53 +04:00
|
|
|
|
2017-11-27 09:13:12 +04:00
|
|
|
val compare: t -> t -> int
|
|
|
|
val equal: t -> t -> bool
|
2016-09-08 21:13:10 +04:00
|
|
|
|
2017-11-27 09:13:12 +04:00
|
|
|
val (=): t -> t -> bool
|
|
|
|
val (<>): t -> t -> bool
|
|
|
|
val (<): t -> t -> bool
|
|
|
|
val (<=): t -> t -> bool
|
|
|
|
val (>=): t -> t -> bool
|
|
|
|
val (>): t -> t -> bool
|
|
|
|
val min: t -> t -> t
|
|
|
|
val max: t -> t -> t
|
2017-02-24 20:17:53 +04:00
|
|
|
|
2017-11-27 09:13:12 +04:00
|
|
|
val pp: Format.formatter -> t -> unit
|
2017-02-24 20:17:53 +04:00
|
|
|
|
2017-11-27 09:13:12 +04:00
|
|
|
val encoding: t Data_encoding.t
|
|
|
|
val to_bytes: t -> MBytes.t
|
|
|
|
val of_bytes: MBytes.t -> t option
|
2017-02-24 20:17:53 +04:00
|
|
|
|
2017-11-27 09:13:12 +04:00
|
|
|
end
|
|
|
|
|
|
|
|
module type HASHABLE = sig
|
|
|
|
|
|
|
|
include T
|
|
|
|
|
|
|
|
type hash
|
|
|
|
val hash: t -> hash
|
|
|
|
val hash_raw: MBytes.t -> hash
|
|
|
|
|
|
|
|
end
|