package oxbow

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Direction.SpatialSource

Sourcetype t =
  1. | Up
  2. | Down
  3. | Left
  4. | Right
Sourceval to_string : t -> string

to_string d is the string representation of d:

  • Up -> "up"
  • Down -> "down"
  • Left -> "left"
  • Right -> "right"
Sourceval of_string : string -> t option

of_string s is the direction named by s, trimmed and case-insensitive; None when unrecognized.

Sourceval t_of_yojson : Yojson.Safe.t -> t
Sourceval yojson_of_t : t -> Yojson.Safe.t