package streamable

  1. Overview
  2. Docs
A collection of types suitable for incremental serialization

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.16.1.tar.gz
md5=c410b847f5a0f0be3c67b3403af04282
sha512=62cdeea4d38110bc6bd318e564e8277355928156c947400ee3e023998b60009a9d20073e8f7efedbe3bbada739bea56c6ff7d1eaba26898f6675ab690f03aadb

doc/src/streamable/remove_t.ml.html

Source file remove_t.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
open! Core
open! Import

(** Useful for removing the [type t] in the output of one of the streamable functors.

    Note: these functors will never change.  It's fine to use them in stable contexts.
*)
module F (S : Module_type.S) = struct
  module Streamable_impl : Module_type.S with type t := S.t = S
  include Streamable_impl
end

module F_rpc (S : Module_type.S_rpc) = struct
  module Streamable_impl : Module_type.S_rpc with type t := S.t = S
  include Streamable_impl
end