package core_extended

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

This is pretty pointless -- the GC will traverse a Make(B).t if and only if it would traverse the corresponding B.t. There is no sense in which the returned module implements a "packed" array.

Parameters

module B : Basic

Signature

include Basic with type elt := B.elt with type t := B.t
include sig ... end
val elt_of_sexp : Sexplib.Sexp.t -> B.elt
val sexp_of_elt : B.elt -> Sexplib.Sexp.t
val bin_read_elt : B.elt Core.Bin_prot.Read.reader
val __bin_read_elt__ : (int -> B.elt) Core.Bin_prot.Read.reader
val bin_size_elt : B.elt Core.Bin_prot.Size.sizer
val bin_write_elt : B.elt Core.Bin_prot.Write.writer
val bin_shape_elt : Core.Bin_prot.Shape.t
val length : B.t -> int
val unsafe_get : B.t -> int -> B.elt
val unsafe_slice : B.t -> pos:int -> len:int -> B.t
include Core.Sexpable.S with type t := B.t
val t_of_sexp : Base__.Sexplib.Sexp.t -> B.t
val sexp_of_t : B.t -> Base__.Sexplib.Sexp.t
include Core.Binable.S with type t := B.t
include Bin_prot.Binable.S_only_functions with type t := B.t
val bin_size_t : B.t Bin_prot.Size.sizer
val bin_write_t : B.t Bin_prot.Write.writer
val bin_read_t : B.t Bin_prot.Read.reader
val __bin_read_t__ : (int -> B.t) Bin_prot.Read.reader

This function only needs implementation if t exposed to be a polymorphic variant. Despite what the type reads, this does *not* produce a function after reading; instead it takes the constructor tag (int) before reading and reads the rest of the variant t afterwards.

val bin_shape_t : Bin_prot.Shape.t
val bin_writer_t : B.t Bin_prot.Type_class.writer
val bin_reader_t : B.t Bin_prot.Type_class.reader
val get : B.t -> int -> B.elt
val slice : B.t -> pos:int -> len:int -> B.t
val iter : B.t -> f:(B.elt -> unit) -> unit
val fold : B.t -> init:'a -> f:('a -> B.elt -> 'a) -> 'a
val of_array : B.elt array -> B.t
val to_array : B.t -> B.elt array
val of_list : B.elt list -> B.t
val to_list : B.t -> B.elt list
val empty : B.t
OCaml

Innovation. Community. Security.