You can search for identifiers within the package.
in-package search v0.2.0
oxbow.core
Oxbow_core.Extent
type t =
| Px of int
| Pct of float
val resolve : ref:int -> t -> int
resolve ~ref e is e in pixels: Px n is n; Pct f is f percent of ref, rounded to the nearest integer.
resolve ~ref e
e
Px n
n
Pct f
f
ref
val to_string : t -> string
to_string e is a string of_string parses back to e.
to_string e
of_string
val of_string : string -> (t, string) result
of_string s parses "50" as Px 50 and "12.5%" as Pct 12.5; Error msg when malformed.
of_string s
"50"
Px 50
"12.5%"
Pct 12.5
Error msg
val t_of_yojson : Yojson.Safe.t -> t
val yojson_of_t : t -> Yojson.Safe.t