package octez-internal-libs

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Slice.MakeSource

Build simple slices.

Parameters

module C : Contents.Store
module N : Node.Store
module H : Commit.Store

Signature

Slices

Sourcetype t

The type for slices.

Sourceval t : t Type.t
Sourcetype contents = C.hash * C.value

The type for exported contents.

Sourceval contents_t : contents Type.t
Sourcetype node = N.hash * N.value

The type for exported nodes.

Sourceval node_t : node Type.t
Sourcetype commit = H.hash * H.value

The type for exported commits.

Sourceval commit_t : commit Type.t
Sourcetype value = [
  1. | `Contents of contents
  2. | `Node of node
  3. | `Commit of commit
]

The type for exported values.

Sourceval value_t : value Type.t
Sourceval empty : unit -> t Lwt.t

Create a new empty slice.

Sourceval add : t -> value -> unit Lwt.t

add t v adds v to t.

Sourceval iter : t -> (value -> unit Lwt.t) -> unit Lwt.t

iter t f calls f on all values of t.

OCaml

Innovation. Community. Security.