val sexp_of_t : ('a -> Ppx_sexp_conv_lib.Sexp.t) -> 'a t -> Ppx_sexp_conv_lib.Sexp.t
val create : unit -> _ t
create
creates an empty weak pointer. One must set
it to point it to something.
val get : 'a t -> 'a Core_kernel.Heap_block.t option
val is_some : _ t -> bool
is_some t = Option.is_some (get t)
.
val is_none : _ t -> bool
is_none t = Option.is_none (get t)
.
val set : 'a t -> 'a Core_kernel.Heap_block.t -> unit