Module Ref.Permissioned

type ('a, -'perms) t
include Ppx_sexp_conv_lib.Sexpable.S2 with type ('a, -'perms) t := ('a'perms) t
type ('a, 'b) t
val t_of_sexp : (Sexplib0.Sexp.t -> 'a) -> (Sexplib0.Sexp.t -> 'b) -> Sexplib0.Sexp.t -> ('a'b) t
val sexp_of_t : ('a -> Sexplib0.Sexp.t) -> ('b -> Sexplib0.Sexp.t) -> ('a'b) t -> Sexplib0.Sexp.t
include Bin_prot.Binable.S2 with type ('a, -'perms) t := ('a'perms) t
type ('a, 'b) t
val bin_shape_t : Bin_prot.Shape.t -> Bin_prot.Shape.t -> Bin_prot.Shape.t
val bin_size_t : ('a'b('a'b) t) Bin_prot.Size.sizer2
val bin_write_t : ('a'b('a'b) t) Bin_prot.Write.writer2
val bin_read_t : ('a'b('a'b) t) Bin_prot.Read.reader2
val __bin_read_t__ : ('a'b, int -> ('a'b) t) Bin_prot.Read.reader2
val bin_writer_t : ('a'b('a'b) t) Bin_prot.Type_class.S2.writer
val bin_reader_t : ('a'b('a'b) t) Bin_prot.Type_class.S2.reader
val bin_t : ('a'b('a'b) t) Bin_prot.Type_class.S2.t
val create : 'a -> ('a[< _ Perms.Export.perms ]) t
val read_only : ('a[> Perms.Export.read ]) t -> ('aPerms.Export.read) t
val (!) : ('a[> Perms.Export.read ]) t -> 'a

get and (!) are two names for the same function.

val get : ('a[> Perms.Export.read ]) t -> 'a
val set : ('a[> Perms.Export.write ]) t -> 'a -> Core_kernel__.Import.unit

set and (:=) are two names for the same function.

val (:=) : ('a[> Perms.Export.write ]) t -> 'a -> Core_kernel__.Import.unit
val of_ref : 'a Core_kernel__.Import.ref -> ('a[< Perms.Export.read_write ]) t
val to_ref : ('a[> Perms.Export.read_write ]) t -> 'a Core_kernel__.Import.ref
val swap : ('a[> Perms.Export.read_write ]) t -> ('a[> Perms.Export.read_write ]) t -> Core_kernel__.Import.unit
val replace : ('a[> Perms.Export.read_write ]) t -> ('a -> 'a) -> Core_kernel__.Import.unit
val set_temporarily : ('a[> Perms.Export.read_write ]) t -> 'a -> f:(Core_kernel__.Import.unit -> 'b) -> 'b