Module Base.Ref
Module for the type ref, mutable indirection cells r containing a value of type 'a, accessed with !r and set by r := a.
type 'a t= 'a Base__.Import.Caml.ref={mutable contents : 'a;}
val compare : ('a -> 'a -> int) -> 'a t -> 'a t -> intval equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
include Sexpable.S1 with type 'a t := 'a t
val t_of_sexp : (Sexplib0.Sexp.t -> 'a) -> Sexplib0.Sexp.t -> 'a tval sexp_of_t : ('a -> Sexplib0.Sexp.t) -> 'a t -> Sexplib0.Sexp.t
val t_sexp_grammar : Sexp.Private.Raw_grammar.t
val replace : 'a t -> ('a -> 'a) -> unitreplace t fist := f !t
val set_temporarily : 'a t -> 'a -> f:(unit -> 'b) -> 'bset_temporarily t a ~fsetsttoa, callsf (), and then restorestto its value prior toset_temporarilybeing called, whetherfreturns or raises.
module And_value : sig ... endval sets_temporarily : And_value.t list -> f:(unit -> 'a) -> 'asets_temporarily [ ...; T (ti, ai); ... ] ~fsets eachtitoai, callsf (), and then restores alltito their value prior tosets_temporarilybeing called, whetherfreturns or raises.