Module Core_kernel.Set_once
A 'a Set_once.t is like an 'a option ref that can only be set once. A Set_once.t starts out as None, the first set transitions it to Some, and subsequent sets fail.
val sexp_of_t : ('a -> Ppx_sexp_conv_lib.Sexp.t) -> 'a t -> Ppx_sexp_conv_lib.Sexp.t
Passes when unset.
include Core_kernel__.Import.Invariant.S1 with type 'a t := 'a t
val invariant : 'a Base__.Invariant_intf.inv -> 'a t Base__.Invariant_intf.inv
val create : Core_kernel__.Import.unit -> _ tval set : 'a t -> Source_code_position.t -> 'a -> Core_kernel__.Import.unit Or_error.tval set_exn : 'a t -> Source_code_position.t -> 'a -> Core_kernel__.Import.unitval set_if_none : 'a t -> Source_code_position.t -> 'a -> Core_kernel__.Import.unitset_if_none t here awill do nothing ifis_some t, otherwise it willset_exn t here a.
val get : 'a t -> 'a Core_kernel__.Import.optionval get_exn : 'a t -> Source_code_position.t -> 'aval is_none : _ t -> Core_kernel__.Import.boolval is_some : _ t -> Core_kernel__.Import.boolval iter : 'a t -> f:('a -> Core_kernel__.Import.unit) -> Core_kernel__.Import.unit
module Optional_syntax : Optional_syntax.S1 with type 'a t := 'a t with type 'a value := 'a Core_kernel__.Import.identitymodule Unstable : sig ... endmodule Stable : sig ... end