package awa

  1. Overview
  2. Docs
val trap_error : (unit -> 'a) -> ('a, string) result
val let* : ('a, 'b) result -> ('a -> ('c, 'b) result) -> ('c, 'b) result
val guard : bool -> 'a -> (unit, 'a) result
val guard_some : 'a option -> 'b -> ('a, 'b) result
val guard_none : 'a option -> 'b -> (unit, 'b) result
val is_none : 'a option -> bool
val is_some : 'a option -> bool
val u32_compare : int32 -> int32 -> int
val cs_safe_shift : Cstruct.t -> int -> (Cstruct.t, string) result
val cs_join : Cstruct.t -> Cstruct.t -> Cstruct.t
val cs_of_bytes : Cstruct.uint8 list -> Cstruct.t
val sprintf : ('a, unit, string) format -> 'a
OCaml

Innovation. Community. Security.