package awa

  1. Overview
  2. Docs
val trap_error : (unit -> 'a) -> ('b, string) result
val let* : ('a, 'b) result -> ('a -> ('c, 'b) result) -> ('c, 'b) result
val guard : bool -> 'a -> (unit, 'b) result
val guard_some : 'a option -> 'b -> ('c, 'd) result
val guard_none : 'a option -> 'b -> (unit, 'c) 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.