package capnp-rpc

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

Module Capnp_rpc_proto.RO_arraySource

A read-only array.

Sourcetype 'a t
Sourceval of_list : 'a list -> 'a t
Sourceval init : int -> (int -> 'a) -> 'a t
Sourceval get_exn : 'a t -> int -> 'a
Sourceval get : oob:'a -> 'a t -> int -> 'a
Sourceval length : 'a t -> int
Sourceval map : ('a -> 'b) -> 'a t -> 'b t
Sourceval mapi : (int -> 'a -> 'b) -> 'a t -> 'b t
Sourceval iter : ('a -> unit) -> 'a t -> unit
Sourceval iteri : (int -> 'a -> unit) -> 'a t -> unit
Sourceval fold_left : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a
Sourceval find : ('a -> bool) -> 'a t -> 'a option
Sourceval empty : 'a t
Sourceval pp : 'a Fmt.t -> 'a t Fmt.t
Sourceval equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
Sourceval release : 'a t -> 'a -> unit

release t null replaces every element in the array with null. This is useful to mark the array as finished.

OCaml

Innovation. Community. Security.