package awa

  1. Overview
  2. Docs
val trap_error : (unit -> 'a) -> ('a, string) Stdlib.result
val let* : ('a, 'b) Stdlib.result -> ('a -> ('c, 'b) Stdlib.result) -> ('c, 'b) Stdlib.result
val guard : bool -> 'a -> (unit, 'a) Stdlib.result
val guard_some : 'a option -> 'b -> ('a, 'b) Stdlib.result
val guard_none : 'a option -> 'b -> (unit, 'b) Stdlib.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) Stdlib.result
val cs_join : Cstruct.t -> Cstruct.t -> Cstruct.t
val cs_of_bytes : Cstruct.uint8 list -> Cstruct.t
val sprintf : ('a, unit, string) Stdlib.format -> 'a
OCaml

Innovation. Community. Security.