Module Ocamlformat_stdlib.Ref
type !'a t = 'a ref = {mutable contents : 'a;
}val compare : ('a -> 'a -> int) -> 'a t -> 'a t -> intval equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> boolval globalize : ('a -> 'a) -> 'a t -> 'a tval t_of_sexp : (Sexplib0__.Sexp.t -> 'a) -> Sexplib0__.Sexp.t -> 'a tval sexp_of_t : ('a -> Sexplib0__.Sexp.t) -> 'a t -> Sexplib0__.Sexp.tval (:=) : 'a t -> 'a -> unitval swap : 'a t -> 'a t -> unitval replace : 'a t -> ('a -> 'a) -> unitval set_temporarily : 'a t -> 'a -> f:(unit -> 'b) -> 'bval sets_temporarily : And_value.t list -> f:(unit -> 'a) -> 'a