Module Core__Syscall_result.Int
type ok_valuetype 'a syscall_resulttype t= ok_value syscall_result
val compare : t -> t -> intval sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val create_ok : ok_value -> tval create_error : Core__.Unix_error.t -> tval is_ok : t -> boolval is_error : t -> boolval to_result : t -> (ok_value, Core__.Unix_error.t) Core__.Import.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 -> ok_valueval error_exn : t -> Core__.Unix_error.tval reinterpret_error_exn : t -> _ syscall_resultThis is more efficient than calling
error_exnand then thecreate_errorof the destination type.
val ok_or_unix_error_exn : t -> syscall_name:string -> ok_valueval ok_or_unix_error_with_args_exn : t -> syscall_name:string -> 'a -> ('a -> Core__.Import.Sexp.t) -> ok_value
module Optional_syntax : Core__.Import.Optional_syntax.S with type t := t and type value := ok_value