package tezos-protocol-alpha

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
type level = t
  • raises Invalid_argument

    when the level to encode is not positive

include Tezos_protocol_environment_alpha.Compare.S with type t := level
val (=) : level -> level -> bool
val (<>) : level -> level -> bool
val (<) : level -> level -> bool
val (<=) : level -> level -> bool
val (>=) : level -> level -> bool
val (>) : level -> level -> bool
val compare : level -> level -> int
val equal : level -> level -> bool
val max : level -> level -> level
val min : level -> level -> level
val to_int32 : level -> int32
val of_int32_exn : int32 -> level
  • raises Invalid_argument

    when the level to encode is negative

Can trigger Unexpected_level error when the level to encode is negative

val diff : level -> level -> int32
val root : level
val succ : level -> level
val pred : level -> level option
val add : level -> int -> level

add l i i must be positive

val sub : level -> int -> level option

sub l i i must be positive

module Index : Storage_description.INDEX with type t = level
OCaml

Innovation. Community. Security.