package polars

  1. Overview
  2. Docs

Source file common.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
open! Core
include Common_intf

module Make_numeric (T : Numeric_basic) = struct
  include T

  let ( + ) = add
  let ( - ) = sub
  let ( * ) = mul
  let ( / ) = div
end

module Make_logic (T : Logic_basic) = struct
  include T

  let ( ! ) = not
  let ( && ) = and_
  let ( || ) = or_
  let ( lxor ) = xor
end

external record_panic_backtraces : unit -> unit = "rust_record_panic_backtraces"

module For_testing = struct
  external panic : string -> unit = "rust_test_panic"
  external clear_panic_hook : unit -> unit = "rust_clear_panic_hook"
end