Packed_float_option.RefFor records not consisting purely of floats, fields of t are preferable to mutable fields of Packed_float_option.t because their value can be mutated without crossing the GC write barrier.
This is because float storage in a record of mixed types must be boxed, so changing a mutable Packed_float_option.t requires a caml_modify call to point the mutable field to a different float. In contrast, a t stores an unboxed float which may be modified directly.
include Core.Bin_prot.Binable.S with type t := tinclude Bin_prot.Binable.S_only_functions with type t := tval bin_read_t : t Bin_prot.Read.readerval __bin_read_t__ : t Bin_prot.Read.vtag_readerThis function only needs implementation if t exposed to be a polymorphic variant. Despite what the type reads, this does *not* produce a function after reading; instead it takes the constructor tag (int) before reading and reads the rest of the variant t afterwards.
val bin_shape_t : Bin_prot.Shape.tval bin_writer_t : t Bin_prot.Type_class.writerval bin_reader_t : t Bin_prot.Type_class.readerval bin_t : t Bin_prot.Type_class.tinclude Sexplib0.Sexpable.S with type t := tinclude Sexplib0.Sexpable.Of_sexp with type t := tval t_of_sexp : Sexplib0.Sexp.t -> tinclude Sexplib0.Sexpable.Sexp_of with type t := tval sexp_of_t : t -> Sexplib0.Sexp.tval create : float -> tval get : t -> floatval set : t -> float -> unit