Module Octez_rust_tezos_context.Rust_tezedge_gen

type index
type context
type tree
type o_caml_tree_walker
type o_caml_depth =
  1. | Eq of int
  2. | Le of int
  3. | Lt of int
  4. | Ge of int
  5. | Gt of int
type o_caml_order =
  1. | Sorted
  2. | Undefined
type kind =
  1. | Value
  2. | Tree
val index_init : string -> index
val index : context -> index
val context_init : index -> context
val commit : context -> int64 -> string -> string -> bytes
val hash : context -> int64 -> string -> string -> bytes
val exists : index -> 'a -> bool
val checkout : index -> 'a -> context option
val find : context -> string list -> bytes option
val remove : context -> string list -> context
val add : context -> string list -> 'a -> context
val mem_tree : context -> string list -> bool
val mem : context -> string list -> bool
val find_tree : context -> string list -> tree option
val list : context -> int option -> int option -> string list -> (string * tree) array
val length : context -> string list -> int
val add_tree : context -> string list -> tree -> context
val make_tree_walker : tree -> o_caml_depth option -> string list -> 'b -> o_caml_tree_walker
val tree_walker_next : o_caml_tree_walker -> (string array * tree) option
val get_tree : context -> tree
val tree_kind : tree -> kind
val tree_mem : tree -> string list -> bool
val tree_mem_tree : tree -> string list -> bool
val tree_find : tree -> string list -> bytes option
val tree_find_tree : tree -> string list -> tree option
val tree_list : tree -> int option -> int option -> string list -> (string * tree) array
val tree_length : tree -> string list -> int
val tree_add : tree -> string list -> 'a -> tree
val tree_add_tree : tree -> string list -> tree -> tree
val tree_remove : tree -> string list -> tree
val tree_is_empty : tree -> bool
val tree_empty : context -> tree
val tree_to_value : tree -> bytes option
val tree_of_value : context -> bytes -> tree
val tree_hash : tree -> bytes
val tree_equal : tree -> tree -> bool
val export_snapshot : string -> 'a -> string -> unit