package irmin

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

Module Backend.SliceSource

A slice abstraction.

Slices

Sourcetype t = slice

The type for slices.

The type for exported contents.

Sourceval contents_t : contents Irmin.Type.t

The type for exported nodes.

The type for exported commits.

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

The type for exported values.

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.