jon.recoil.org

Module Initial.DataSource

Sourcetype 'a t = ('a, k) Data.t

A value in the initial capsule.

Sourceval t_of_sexp : (Sexp_type.Sexp.t -> 'a) -> Sexp_type.Sexp.t -> 'a t
Sourceval sexp_of_t : ('a -> Sexp_type.Sexp.t) -> 'a t -> Sexp_type.Sexp.t
Sourceval wrap : 'a -> 'a t

Store a value in a Capsule.Data.t for the initial capsule. This function is nonportable, requiring it to only be run from the initial capsule.

Sourceval unwrap : 'a t -> 'a

Extract a value from a Capsule.Data.t for the initial capsule. This function is nonportable, requiring it to only be run from the initial capsule.