Module Toml.Value.To

module To: sig .. end

exception Bad_type of string
Bad_type exceptions carry expected type data

From Toml type to OCaml primitive. All conversion functions in this module (and its Array submodule) may throw Bad_type if the Toml type is incorrect (eg, using Toml.Value.To.string on a Toml boolean).
val bool : Toml.Value.value -> bool
val int : Toml.Value.value -> int
val float : Toml.Value.value -> float
val string : Toml.Value.value -> string
val date : Toml.Value.value -> Unix.tm
val array : Toml.Value.value -> Toml.Value.array
val table : Toml.Value.value -> Toml.Value.table
module Array: sig .. end