package core_kernel

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

Module for dealing with weak pointers, i.e., pointers that don't prevent garbage collection of what they point to.

This module is like the OCaml standard library module of the same name, except that it requires that the values in the weak set are heap blocks.

type 'a t
include sig ... end
val sexp_of_t : ('a -> Ppx_sexp_conv_lib.Sexp.t) -> 'a t -> Ppx_sexp_conv_lib.Sexp.t
val create : len:Base.Int.t -> _ t
val length : _ t -> Base.Int.t
val set : 'a t -> Base.Int.t -> 'a Core_kernel__.Import.Heap_block.t Base.Option.t -> Base.Unit.t
val get : 'a t -> Base.Int.t -> 'a Core_kernel__.Import.Heap_block.t Base.Option.t
val is_some : _ t -> Base.Int.t -> Base.Bool.t
val is_none : _ t -> Base.Int.t -> Base.Bool.t
OCaml

Innovation. Community. Security.