package awa

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