package core

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Ref.PermissionedSource

Sourcetype ('a, -'perms) t
include Sexplib0.Sexpable.S2 with type ('a, -'perms) t := ('a, 'perms) t
Sourceval t_of_sexp : (Sexplib0.Sexp.t -> 'a) -> (Sexplib0.Sexp.t -> 'b) -> Sexplib0.Sexp.t -> ('a, 'b) t
Sourceval 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
Sourceval bin_size_t : ('a, 'b, ('a, 'b) t) Bin_prot.Size.sizer2
Sourceval bin_write_t : ('a, 'b, ('a, 'b) t) Bin_prot.Write.writer2
Sourceval bin_read_t : ('a, 'b, ('a, 'b) t) Bin_prot.Read.reader2
Sourceval __bin_read_t__ : ('a, 'b, int -> ('a, 'b) t) Bin_prot.Read.reader2
Sourceval bin_writer_t : ('a, 'b, ('a, 'b) t) Bin_prot.Type_class.S2.writer
Sourceval bin_reader_t : ('a, 'b, ('a, 'b) t) Bin_prot.Type_class.S2.reader
Sourceval bin_t : ('a, 'b, ('a, 'b) t) Bin_prot.Type_class.S2.t
Sourceval create : 'a -> ('a, [< _ Perms.Export.perms ]) t
Sourceval read_only : ('a, [> Perms.Export.read ]) t -> ('a, Perms.Export.read) t
Sourceval (!) : ('a, [> Perms.Export.read ]) t -> 'a

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

Sourceval get : ('a, [> Perms.Export.read ]) t -> 'a
Sourceval set : ('a, [> Perms.Export.write ]) t -> 'a -> Base.Unit.t

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

Sourceval (:=) : ('a, [> Perms.Export.write ]) t -> 'a -> Base.Unit.t
Sourceval of_ref : 'a Base.Ref.t -> ('a, [< Perms.Export.read_write ]) t
Sourceval to_ref : ('a, [> Perms.Export.read_write ]) t -> 'a Base.Ref.t
Sourceval replace : ('a, [> Perms.Export.read_write ]) t -> ('a -> 'a) -> Base.Unit.t
Sourceval set_temporarily : ('a, [> Perms.Export.read_write ]) t -> 'a -> f:(Base.Unit.t -> 'b) -> 'b
OCaml

Innovation. Community. Security.