module Slot: sig .. end
type t = Printexc.backtrace_slot;
let is_raise: t => bool;
slotrefers to a raising point in the code, and
falsewhen it comes from a simple function call.
let location: t => option(Printexc.location);
location slotreturns the location information of the slot, if available, and
Some possible reasons for failing to return a location are as follow:
let format: (int, t) => option(string);
format pos slotreturns the string representation of
raw_backtrace_to_stringwould format it, assuming it is the
pos-th element of the backtrace: the
0-th element is pretty-printed differently than the others.
Whole-backtrace printing functions also skip some uninformative
slots; in that case,
format pos slot returns