type t = 'a tval sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.tinclude Base.Equal.S with type t := t
val equal : t Base.Equal.equalval create_ok : unit -> tval create_error : Unix.error -> tval is_ok : t -> boolval is_error : t -> boolval to_result : t -> (unit, Unix.error) Core_kernel.Result.tThis returns a preallocated object for all errors and at least a few ok_values, so can be used in many contexts where avoiding allocation is important.
val ok_exn : t -> unitval error_exn : t -> Unix.errorThis is more efficient than calling error_exn and then the create_error of the destination type.
val ok_or_unix_error_exn : t -> syscall_name:string -> unitval ok_or_unix_error_with_args_exn : t -> syscall_name:string -> 'a -> ('a -> Core_kernel.Sexp.t) -> unitmodule Optional_syntax : Core_kernel.Optional_syntax.S with type t := t and type value := unit