package styled-ppx

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type length = [
  1. | `ch of float
  2. | `cqw of float
  3. | `cqh of float
  4. | `cqi of float
  5. | `cqb of float
  6. | `cqmin of float
  7. | `cqmax of float
  8. | `em of float
  9. | `ex of float
  10. | `rem of float
  11. | `vh of float
  12. | `vw of float
  13. | `vmin of float
  14. | `vmax of float
  15. | `px of int
  16. | `pxFloat of float
  17. | `cm of float
  18. | `mm of float
  19. | `inch of float
  20. | `pc of float
  21. | `pt of int
  22. | `zero
  23. | Percentage.t
]
type calc_value = [
  1. | length
  2. | `min of t array
  3. | `max of t array
  4. | `add of calc_value * calc_value
  5. | `sub of calc_value * calc_value
  6. | `mult of calc_value * calc_value
  7. | `div of calc_value * float
  8. | `calc of calc_value
  9. | `num of float
]
and t = [
  1. | length
  2. | `calc of calc_value
  3. | `min of t array
  4. | `max of t array
]
val ch : 'a -> [> `ch of 'a ]
val cqw : 'a -> [> `cqw of 'a ]
val cqh : 'a -> [> `cqh of 'a ]
val cqi : 'a -> [> `cqi of 'a ]
val cqb : 'a -> [> `cqb of 'a ]
val cqmin : 'a -> [> `cqmin of 'a ]
val cqmax : 'a -> [> `cqmax of 'a ]
val em : 'a -> [> `em of 'a ]
val ex : 'a -> [> `ex of 'a ]
val rem : 'a -> [> `rem of 'a ]
val vh : 'a -> [> `vh of 'a ]
val vw : 'a -> [> `vw of 'a ]
val vmin : 'a -> [> `vmin of 'a ]
val vmax : 'a -> [> `vmax of 'a ]
val px : 'a -> [> `px of 'a ]
val pxFloat : 'a -> [> `pxFloat of 'a ]
val cm : 'a -> [> `cm of 'a ]
val mm : 'a -> [> `mm of 'a ]
val inch : 'a -> [> `inch of 'a ]
val pc : 'a -> [> `pc of 'a ]
val pt : 'a -> [> `pt of 'a ]
val zero : [> `zero ]
val toString : t -> string
val calc_value_to_string : calc_value -> string
val minmax_to_string : [< `calc of [< `add of t * t | `div of t * float | `mult of t * t | `sub of t * t ] | `ch of float | `cm of float | `cqb of float | `cqh of float | `cqi of float | `cqmax of float | `cqmin of float | `cqw of float | `em of float | `ex of float | `inch of float | `max of t array | `min of t array | `mm of float | `num of float | `pc of float | `percent of float | `pt of int | `px of int | `pxFloat of float | `rem of float | `vh of float | `vmax of float | `vmin of float | `vw of float | `zero max min ] -> string
OCaml

Innovation. Community. Security.