Module Percent_u.Option

type value := t
type t
val globalize : t @ local -> t
val unbox : Core.Percent.Option.t @ local -> t
val to_string : t -> string
val sexp_of_t : t -> Core.Sexp.t
val t_of_sexp : Core.Sexp.t -> t
include Core.Bin_prot.Binable.S__local with type t := t
include Bin_prot.Binable.S_only_functions__local with type t := t
include sig ... end
val bin_size_t : t Bin_prot.Size.sizer
val bin_write_t : t Bin_prot.Write.writer
val bin_read_t : t Bin_prot.Read.reader
val __bin_read_t__ : t Bin_prot.Read.vtag_reader

This 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.t
val bin_writer_t : t Bin_prot.Type_class.writer
val bin_reader_t : t Bin_prot.Type_class.reader
include Ppx_hash_lib.Hashable.S_any with type t := t
val hash_fold_t : t Ppx_hash_lib.hash_fold
val typerep_of_t : t Core.Typerep.t
val none : unit -> t
val is_none : t -> bool
val is_some : t -> bool
val some : value -> t
val value : t -> default:value -> value
val of_percentage : Packed_float_option.Unboxed.t -> t
val to_percentage : t -> Packed_float_option.Unboxed.t
val of_percentage_approx : Packed_float_option.Unboxed.t -> t
val of_bp_approx : Packed_float_option.Unboxed.t -> t
val equal : t -> t -> bool
val equal__local : t @ local -> (t @ local -> bool) @ local
val compare : t -> t -> int
val unchecked_some : value -> t

unchecked_some will not validate that value is a valid Some so the t returned may be none.

val select : bool -> t -> t -> t
module Optional_syntax : sig ... end
module O : sig ... end

Infix

include module type of O
val (*) : t -> t -> t
val (+) : t -> t -> t
val (-) : t -> t -> t
val (/) : t -> t -> t

Comparison Infix

val (=) : t -> t -> bool
val (<>) : t -> t -> bool