Module Ref.Permissioned
include Ppx_sexp_conv_lib.Sexpable.S2 with type ('a, -'perms) t := ('a, 'perms) 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
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, [< _ Core_kernel.Perms.Export.perms ]) t
val read_only : ('a, [> Core_kernel.Perms.Export.read ]) t -> ('a, Core_kernel.Perms.Export.read) t
val (!) : ('a, [> Core_kernel.Perms.Export.read ]) t -> 'a
get
and(!)
are two names for the same function.
val get : ('a, [> Core_kernel.Perms.Export.read ]) t -> 'a
val set : ('a, [> Core_kernel.Perms.Export.write ]) t -> 'a -> Core_kernel__.Import.unit
set
and(:=)
are two names for the same function.
val (:=) : ('a, [> Core_kernel.Perms.Export.write ]) t -> 'a -> Core_kernel__.Import.unit
val of_ref : 'a Core_kernel__.Import.ref -> ('a, [< Core_kernel.Perms.Export.read_write ]) t
val to_ref : ('a, [> Core_kernel.Perms.Export.read_write ]) t -> 'a Core_kernel__.Import.ref
val swap : ('a, [> Core_kernel.Perms.Export.read_write ]) t -> ('a, [> Core_kernel.Perms.Export.read_write ]) t -> Core_kernel__.Import.unit
val replace : ('a, [> Core_kernel.Perms.Export.read_write ]) t -> ('a -> 'a) -> Core_kernel__.Import.unit
val set_temporarily : ('a, [> Core_kernel.Perms.Export.read_write ]) t -> 'a -> f:(Core_kernel__.Import.unit -> 'b) -> 'b