Module CoreSource
Core greatly expands the functionality available in Base while still remaining platform-agnostic. Core changes more frequently (i.e., is less stable) than Base.
Some modules are mere extensions of their counterparts in Base, usually adding generic functionality by including functors that make them binable, comparable, sexpable, blitable, etc. The bulk of Core, though, is modules providing entirely new functionality.
module Applicative = Base.ApplicativeFixed-length, mutable vector of elements with O(1) get and set operations.
Substring type based on Bigarray, for use in I/O and C-bindings
This module extends the Base.Binary_searchable module.
Bounded_index creates unique index types with explicit bounds and human-readable labels. "(thing 2 of 0 to 4)" refers to a 0-based index for the third element of five with the label "thing", whereas a 1-based index for the second element of twelve with the label "item" renders as "(item 2 of 1 to 12)", even though both represent the index 2.
This module extends Base.Bytes.
This module extends Base.Char, adding Identifiable for making char identifiers and Quickcheckable to facilitate automated testing with pseudorandom data.
Comparable extends Base.Comparable and provides functions for comparing like types.
This module extends Base.Container.
Provides a variant type for days of the week (Mon, Tue, etc.) and convenience functions for converting these days into other formats, like sexp or string or ISO 8601 weekday number.
Generates hash functions from type expressions and definitions.
This module extends Base.Either.
This module extends Base.Error with bin_io, diff, and quickcheck.
A simple polymorphic functional double-ended queue. Use this if you need a queue-like data structure that provides enqueue and dequeue accessors on both ends. For strictly first-in, first-out access, see Fqueue.
An alias to the Float.t type that causes the sexp and bin-io serializers to fail when provided with nan or infinity.
A simple polymorphic functional queue. Use this data structure for strictly first-in, first-out access to a sequence of values. For a similar data structure with enqueue and dequeue accessors on both ends of a sequence, see Core.Fdeque.
This is a wrapper around INRIA's standard Gc module. Provides memory management control and statistics, and finalized values.
Hashtbl is a reimplementation of the standard MoreLabels.Hashtbl. Its worst case time complexity is O(log(N)) for lookups and additions, unlike the standard MoreLabels.Hashtbl, which is O(N).
A functor for displaying a type as a sequence of ASCII characters printed in hexadecimal.
Type for the commonly-used notion of host and port in networking.
Always immediate.
A non-allocating alternative to the standard Option type.
module In_channel = Stdio.In_channelThis module extends Base.Info, which provides a type for info-level debug messages.
This module extends Base.Int32.
This module extends Base.Int63.
This module extends Base.Int64.
Various interface exports.
This module extends the Base.Linked_queue module with bin_io support. As a reminder, the Base.Linked_queue module is a wrapper around OCaml's standard Queue module that follows Base idioms and adds some functions.
Map is a functional data structure (balanced binary tree) implementing finite maps over a totally-ordered domain, called a "key".
This module defines interfaces used in Map. See those docs for a description of the design.
This module extends Base.Maybe_bound with bin_io and with compare functions in the form of As_lower_bound and As_upper_bound modules.
This module implements the MD5 message-digest algorithm as described IETF RFC 1321. t is the result type and val digest_string : string -> t is the implementation of the algorithm itself.
Provides a variant type for representing months (e.g., Jan, Feb, or Nov) and functions for converting them to other formats (like an int).
This module extends Base.Nativeint.
Open this in modules where you don't want to accidentally use polymorphic comparison. Then, use Poly.(<), for example, where needed.
This module extends Base.Nothing.
This module can be used to safely expose functions and values in signatures that should only be used in unit tests.
This module extends Base.Option with bin_io, quickcheck, and support for ppx_optional.
This module extends Base.Option_array with bin_io.
Interfaces for use with the match%optional syntax, provided by ppx_optional.
This module extends Base.Or_error with bin_io, diff, and quickcheck.
This module extends Base.Or_null with bin_io and quickcheck.
Extends Base.Ordering, intended to make code that matches on the result of a comparison more concise and easier to read.
module Out_channel = Stdio.Out_channelA scale factor, not bounded between 0% and 100%, represented as a float.
These types are intended to be used as phantom types encoding the permissions on a given type.
module Portability_hacks = Base.Portability_hacksThis module is here to ensure that we don't use the functions in Caml.Printexc inadvertently.
This module extends Base.Queue with bin_io.
Quickcheck is a library that uses predicate-based tests and pseudo-random inputs to automate testing.
This module extends Base.Result.
This interface compares float-like objects with a small tolerance.
This module extends Base.Sequence with bin_io.
This module defines the Set module for Core. Functions that construct a set take as an argument the comparator for the element type.
A 'a Set_once.t is like an 'a option ref that can only be set once. A Set_once.t starts out as None, the first set transitions it to Some, and subsequent sets fail.
This module extends Base.Sexpable.
This module extends Base.Sign_or_nan with bin_io.
This module extends Base.Source_code_position.
The tests generated by these functors are run like any other unit tests: by the inline test runner when the functor is applied.
This module extends Base.String.
Like Identifiable, but with t = private string and stable modules.
module Subatomic = Portable.SubatomicA substring is a contiguous set of characters within a string. Creating a substring does not copy. Therefore modifying the string also modifies the substring.
Interface for Substring.
A module for representing absolute points in time, independent of time zone.
Timezone handles parsing timezone data and create Timezone.t that can later be used to manipulate time using the Time_float and Time_ns modules.
This module extends Base.Type_equal.
This module extends Base.Uchar, adding Comparable and Hashable functionality, bin_io support, and Quickcheckable to facilitate automated testing with pseudorandom data.
This module extends Base.Uniform_array with bin_io.
Imperative data structure for representing disjoint sets.
Module for the type unit, extended from Base.Unit. This is mostly useful for building functor arguments.
Represents a unit of time, e.g., that used by Time.Span.to_string_hum. Comparison respects Nanosecond < Microsecond < Millisecond < Second < Minute < Hour < Day.
included first so that everything else shadows it
Exceptions
Raise the given exception value
A faster version raise which does not record the backtrace.
Raise exception Invalid_argument with the given string.
Raise exception Failure with the given string.
The Exit exception is not raised by any library function. It is provided for use in your programs.
Comparisons
e1 == e2 tests for physical equality of e1 and e2. On mutable types such as references, arrays, byte sequences, records with mutable fields and objects with mutable instance variables, e1 == e2 is true if and only if physical modification of e1 also affects e2. On non-mutable types, the behavior of ( == ) is implementation-dependent; however, it is guaranteed that e1 == e2 implies compare e1 e2 = 0.
Negation of (==).
Boolean operations
The boolean 'and'. Evaluation is sequential, left-to-right: in e1 && e2, e1 is evaluated first, and if it returns false, e2 is not evaluated at all.
The boolean 'or'. Evaluation is sequential, left-to-right: in e1 || e2, e1 is evaluated first, and if it returns true, e2 is not evaluated at all.
Debugging
__LOC__ returns the location at which this expression appears in the file currently being parsed by the compiler, with the standard error format of OCaml: "File %S, line %d, characters %d-%d"
__FILE__ returns the name of the file currently being parsed by the compiler.
__LINE__ returns the line number at which this expression appears in the file currently being parsed by the compiler.
__MODULE__ returns the module name of the file being parsed by the compiler.
__POS__ returns a tuple (file,lnum,cnum,enum), corresponding to the location at which this expression appears in the file currently being parsed by the compiler. file is the current filename, lnum the line number, cnum the character position in the line and enum the last character position in the line.
__FUNCTION__ returns the name of the current function or method, including any enclosing modules or classes.
__LOC_OF__ expr returns a pair (loc, expr) where loc is the location of expr in the file currently being parsed by the compiler, with the standard error format of OCaml: "File %S, line %d, characters %d-%d"
__LINE_OF__ expr returns a pair (line, expr), where line is the line number at which the expression expr appears in the file currently being parsed by the compiler.
__POS_OF__ expr returns a pair (expr,loc), where loc is a tuple (file,lnum,cnum,enum) corresponding to the location at which the expression expr appears in the file currently being parsed by the compiler. file is the current filename, lnum the line number, cnum the character position in the line and enum the last character position in the line.
Composition operators
Reverse-application operator: x |> f |> g is exactly equivalent to g (f (x)).
Application operator: g @@ f @@ x is exactly equivalent to g (f (x)).
Integer arithmetic
Integers are 31 bits wide (or 63 bits on 64-bit processors). All operations are taken modulo 2{^31} (or 2{^63}). They do not fail on overflow.
Integer division. Raise Division_by_zero if the second argument is 0. Integer division rounds the real quotient of its arguments towards zero. More precisely, if x >= 0 and y > 0, x / y is the greatest integer less than or equal to the real quotient of x by y. Moreover, (- x) / y = x / (- y) = - (x / y).
Integer remainder. If y is not zero, the result of x mod y satisfies the following properties: x = (x / y) * y + x mod y and abs(x mod y) <= abs(y) - 1. If y = 0, x mod y raises Division_by_zero. Note that x mod y is negative only if x < 0. Raise Division_by_zero if y is zero.
Return the absolute value of the argument. Note that this may be negative if the argument is min_int.
Bitwise operations
n lsl m shifts n to the left by m bits. The result is unspecified if m < 0 or m >= bitsize, where bitsize is 32 on a 32-bit platform and 64 on a 64-bit platform.
n lsr m shifts n to the right by m bits. This is a logical shift: zeroes are inserted regardless of the sign of n. The result is unspecified if m < 0 or m >= bitsize.
n asr m shifts n to the right by m bits. This is an arithmetic shift: the sign bit of n is replicated. The result is unspecified if m < 0 or m >= bitsize.
Floating-point arithmetic
OCaml's floating-point numbers follow the IEEE 754 standard, using double precision (64 bits) numbers. Floating-point operations never raise an exception on overflow, underflow, division by zero, etc. Instead, special IEEE numbers are returned as appropriate, such as infinity for 1.0 /. 0.0, neg_infinity for -1.0 /. 0.0, and nan ('not a number') for 0.0 /. 0.0. These special numbers then propagate through floating-point computations as expected: for instance, 1.0 /. infinity is 0.0, and any arithmetic operation with nan as argument returns nan as result.
expm1 x computes exp x -. 1.0, giving numerically-accurate results even if x is close to 0.0.
log1p x computes log(1.0 +. x) (natural logarithm), giving numerically-accurate results even if x is close to 0.0.
Arc cosine. The argument must fall within the range [-1.0, 1.0]. Result is in radians and is between 0.0 and pi.
Arc sine. The argument must fall within the range [-1.0, 1.0]. Result is in radians and is between -pi/2 and pi/2.
Arc tangent. Result is in radians and is between -pi/2 and pi/2.
atan2 y x returns the arc tangent of y /. x. The signs of x and y are used to determine the quadrant of the result. Result is in radians and is between -pi and pi.
hypot x y returns sqrt(x *. x + y *. y), that is, the length of the hypotenuse of a right-angled triangle with sides of length x and y, or, equivalently, the distance of the point (x,y) to origin.
Hyperbolic arc cosine. The argument must fall within the range [1.0, inf]. Result is in radians and is between 0.0 and inf.
Hyperbolic arc sine. The argument and result range over the entire real line. Result is in radians.
Hyperbolic arc tangent. The argument must fall within the range [-1.0, 1.0]. Result is in radians and ranges over the entire real line.
Round above to an integer value. ceil f returns the least integer value greater than or equal to f. The result is returned as a float.
Round below to an integer value. floor f returns the greatest integer value less than or equal to f. The result is returned as a float.
copysign x y returns a float whose absolute value is that of x and whose sign is that of y. If x is nan, returns nan. If y is nan, returns either x or -. x, but it is not specified which.
mod_float a b returns the remainder of a with respect to b. The returned value is a -. n *. b, where n is the quotient a /. b rounded towards zero to an integer.
frexp f returns the pair of the significant and the exponent of f. When f is zero, the significant x and the exponent n of f are equal to zero. When f is non-zero, they are defined by f = x *. 2 ** n and 0.5 <= x < 1.0.
modf f returns the pair of the fractional and integral part of f.
Truncate the given floating-point number to an integer. The result is unspecified if the argument is nan or falls outside the range of representable integers.
A special floating-point value denoting the result of an undefined operation such as 0.0 /. 0.0. Stands for 'not a number'. Any floating-point operation with nan as argument returns nan as result. As for floating-point comparisons, =, <, <=, > and >= return false and <> returns true if one or both of their arguments is nan.
The smallest positive, non-zero, non-denormalized value of type float.
The difference between 1.0 and the smallest exactly representable floating-point number greater than 1.0.
type fpclass = Stdlib.fpclass = The five classes of floating-point numbers, as determined by the Caml.classify_float function.
val classify_float : float -> Core.fpclass @@ portableReturn the class of the given floating-point number: normal, subnormal, zero, infinite, or not a number.
String operations
More string operations are provided in module String.
Character operations
More character operations are provided in module Char.
Return the character with the given ASCII code. Raise Invalid_argument "char_of_int" if the argument is outside the range 0--255.
Unit operations
Discard the value of its argument and return (). For instance, ignore(f x) discards the result of the side-effecting function f. It is equivalent to f x; (), except that the latter may generate a compiler warning; writing ignore(f x) instead avoids the warning.
String conversion functions
Return the string representation of a boolean. As the returned values may be shared, the user should not modify them directly.
Convert the given string to a boolean. Raise Invalid_argument "bool_of_string" if the string is not "true" or "false".
Return the string representation of an integer, in decimal.
Convert the given string to an integer. The string is read in decimal (by default) or in hexadecimal (if it begins with 0x or 0X), octal (if it begins with 0o or 0O), or binary (if it begins with 0b or 0B). Raise Failure "int_of_string" if the given string is not a valid representation of an integer, or if the integer represented exceeds the range of integers representable in type int.
Return the string representation of a floating-point number.
Convert the given string to a float. Raise Failure "float_of_string" if the given string is not a valid representation of a float.
Pair operations
List operations
More list operations are provided in module List.
Input/output
Note: all input/output functions can raise Sys_error when the system calls they invoke fail.
type in_channel = Stdlib.in_channelThe type of input channel.
type out_channel = Stdlib.out_channelThe type of output channel.
val stdin : Stdlib.in_channel @@ portableThe standard input for the process.
val stdout : Stdlib.out_channel @@ portableThe standard output for the process.
val stderr : Stdlib.out_channel @@ portableThe standard error output for the process.
Output functions on standard output
Print a floating-point number, in decimal, on standard output.
Print a string, followed by a newline character, on standard output and flush standard output.
Print a newline character on standard output, and flush standard output. This can be used to simulate line buffering of standard output.
Output functions on standard error
Print a floating-point number, in decimal, on standard error.
Print a string, followed by a newline character on standard error and flush standard error.
Print a newline character on standard error, and flush standard error.
Input functions on standard input
Flush standard output, then read characters from standard input until a newline character is encountered. Return the string of all characters read, without the newline character at the end.
Flush standard output, then read one line from standard input and convert it to an integer. Raise Failure "int_of_string" if the line read is not a valid representation of an integer.
Flush standard output, then read one line from standard input and convert it to a floating-point number. The result is unspecified if the line read is not a valid representation of a floating-point number.
General output functions
type open_flag = Stdlib.open_flag = | Open_rdonly(*open for reading.
*)| Open_wronly(*open for writing.
*)| Open_append(*open for appending: always write at end of file.
*)| Open_creat(*create the file if it does not exist.
*)| Open_trunc(*empty the file if it already exists.
*)| Open_excl(*fail if Open_creat and the file already exists.
*)| Open_binary(*open in binary mode (no conversion).
*)| Open_text(*open in text mode (may perform conversions).
*)| Open_nonblock(*open in non-blocking mode.
*)
Opening modes for Caml.open_out_gen and Caml.open_in_gen.
val open_out : string -> Stdlib.out_channel @@ portableOpen the named file for writing, and return a new output channel on that file, positionned at the beginning of the file. The file is truncated to zero length if it already exists. It is created if it does not already exists.
val open_out_bin : string -> Stdlib.out_channel @@ portableSame as Caml.open_out, but the file is opened in binary mode, so that no translation takes place during writes. On operating systems that do not distinguish between text mode and binary mode, this function behaves like Caml.open_out.
val open_out_gen :
Stdlib.open_flag list ->
int ->
string ->
Stdlib.out_channel @@ portableopen_out_gen mode perm filename opens the named file for writing, as described above. The extra argument mode specify the opening mode. The extra argument perm specifies the file permissions, in case the file must be created. Caml.open_out and Caml.open_out_bin are special cases of this function.
val flush : Stdlib.out_channel -> unit @@ portableFlush the buffer associated with the given output channel, performing all pending writes on that channel. Interactive programs must be careful about flushing standard output and standard error at the right time.
val output_char : Stdlib.out_channel -> char -> unit @@ portableWrite the character on the given output channel.
val output_string : Stdlib.out_channel -> string -> unit @@ portableWrite the string on the given output channel.
val output_bytes : Stdlib.out_channel -> bytes -> unit @@ portableWrite the byte sequence on the given output channel.
val output : Stdlib.out_channel -> bytes -> int -> int -> unit @@ portableoutput oc buf pos len writes len characters from byte sequence buf, starting at offset pos, to the given output channel oc. Raise Invalid_argument "output" if pos and len do not designate a valid range of buf.
val output_substring :
Stdlib.out_channel ->
string ->
int ->
int ->
unit @@ portableSame as output but take a string as argument instead of a byte sequence.
val output_byte : Stdlib.out_channel -> int -> unit @@ portableWrite one 8-bit integer (as the single character with that code) on the given output channel. The given integer is taken modulo
256.
val output_binary_int : Stdlib.out_channel -> int -> unit @@ portableWrite one integer in binary format (4 bytes, big-endian) on the given output channel. The given integer is taken modulo 2{^32}. The only reliable way to read it back is through the Caml.input_binary_int function. The format is compatible across all machines for a given version of OCaml.
val output_value : Stdlib.out_channel -> 'a -> unit @@ portableWrite the representation of a structured value of any type to a channel. Circularities and sharing inside the value are detected and preserved. The object can be read back, by the function Caml.input_value. See the description of module Marshal for more information. Caml.output_value is equivalent to Marshal.to_channel with an empty list of flags.
val seek_out : Stdlib.out_channel -> int -> unit @@ portableseek_out chan pos sets the current writing position to pos for channel chan. This works only for regular files. On files of other kinds (such as terminals, pipes and sockets), the behavior is unspecified.
val pos_out : Stdlib.out_channel -> int @@ portableReturn the current writing position for the given channel. Does not work on channels opened with the Open_append flag (returns unspecified results).
val out_channel_length : Stdlib.out_channel -> int @@ portableReturn the size (number of characters) of the regular file on which the given channel is opened. If the channel is opened on a file that is not a regular file, the result is meaningless.
val close_out : Stdlib.out_channel -> unit @@ portableClose the given channel, flushing all buffered write operations. Output functions raise a Sys_error exception when they are applied to a closed output channel, except close_out and flush, which do nothing when applied to an already closed channel. Note that close_out may raise Sys_error if the operating system signals an error when flushing or closing.
val close_out_noerr : Stdlib.out_channel -> unit @@ portableSame as close_out, but ignore all errors.
val set_binary_mode_out : Stdlib.out_channel -> bool -> unit @@ portableset_binary_mode_out oc true sets the channel oc to binary mode: no translations take place during output. set_binary_mode_out oc false sets the channel oc to text mode: depending on the operating system, some translations may take place during output. For instance, under Windows, end-of-lines will be translated from \n to \r\n. This function has no effect under operating systems that do not distinguish between text mode and binary mode.
General input functions
val open_in : string -> Stdlib.in_channel @@ portableOpen the named file for reading, and return a new input channel on that file, positionned at the beginning of the file.
val open_in_bin : string -> Stdlib.in_channel @@ portableSame as Caml.open_in, but the file is opened in binary mode, so that no translation takes place during reads. On operating systems that do not distinguish between text mode and binary mode, this function behaves like Caml.open_in.
val open_in_gen :
Stdlib.open_flag list ->
int ->
string ->
Stdlib.in_channel @@ portableopen_in_gen mode perm filename opens the named file for reading, as described above. The extra arguments mode and perm specify the opening mode and file permissions. Caml.open_in and Caml.open_in_bin are special cases of this function.
val input_char : Stdlib.in_channel -> char @@ portableRead one character from the given input channel. Raise End_of_file if there are no more characters to read.
val input_line : Stdlib.in_channel -> string @@ portableRead characters from the given input channel, until a newline character is encountered. Return the string of all characters read, without the newline character at the end. Raise End_of_file if the end of the file is reached at the beginning of line.
val input : Stdlib.in_channel -> bytes -> int -> int -> int @@ portableinput ic buf pos len reads up to len characters from the given channel ic, storing them in byte sequence buf, starting at character number pos. It returns the actual number of characters read, between 0 and len (inclusive). A return value of 0 means that the end of file was reached. A return value between 0 and len exclusive means that not all requested len characters were read, either because no more characters were available at that time, or because the implementation found it convenient to do a partial read; input must be called again to read the remaining characters, if desired. (See also Caml.really_input for reading exactly len characters.) Exception Invalid_argument "input" is raised if pos and len do not designate a valid range of buf.
val really_input : Stdlib.in_channel -> bytes -> int -> int -> unit @@ portablereally_input ic buf pos len reads len characters from channel ic, storing them in byte sequence buf, starting at character number pos. Raise End_of_file if the end of file is reached before len characters have been read. Raise Invalid_argument "really_input" if pos and len do not designate a valid range of buf.
val really_input_string : Stdlib.in_channel -> int -> string @@ portablereally_input_string ic len reads len characters from channel ic and returns them in a new string. Raise End_of_file if the end of file is reached before len characters have been read.
val input_byte : Stdlib.in_channel -> int @@ portableSame as Caml.input_char, but return the 8-bit integer representing the character. Raise End_of_file if an end of file was reached.
val input_binary_int : Stdlib.in_channel -> int @@ portableRead an integer encoded in binary format (4 bytes, big-endian) from the given input channel. See Caml.output_binary_int. Raise End_of_file if an end of file was reached while reading the integer.
val input_value : Stdlib.in_channel -> 'a @@ portableRead the representation of a structured value, as produced by Caml.output_value, and return the corresponding value. This function is identical to Marshal.from_channel; see the description of module Marshal for more information, in particular concerning the lack of type safety.
val seek_in : Stdlib.in_channel -> int -> unit @@ portableseek_in chan pos sets the current reading position to pos for channel chan. This works only for regular files. On files of other kinds, the behavior is unspecified.
val pos_in : Stdlib.in_channel -> int @@ portableReturn the current reading position for the given channel.
val in_channel_length : Stdlib.in_channel -> int @@ portableReturn the size (number of characters) of the regular file on which the given channel is opened. If the channel is opened on a file that is not a regular file, the result is meaningless. The returned size does not take into account the end-of-line translations that can be performed when reading from a channel opened in text mode.
val close_in : Stdlib.in_channel -> unit @@ portableClose the given channel. Input functions raise a Sys_error exception when they are applied to a closed input channel, except close_in, which does nothing when applied to an already closed channel.
val close_in_noerr : Stdlib.in_channel -> unit @@ portableSame as close_in, but ignore all errors.
val set_binary_mode_in : Stdlib.in_channel -> bool -> unit @@ portableset_binary_mode_in ic true sets the channel ic to binary mode: no translations take place during input. set_binary_mode_out ic false sets the channel ic to text mode: depending on the operating system, some translations may take place during input. For instance, under Windows, end-of-lines will be translated from \r\n to \n. This function has no effect under operating systems that do not distinguish between text mode and binary mode.
Operations on large files
Operations on large files. This sub-module provides 64-bit variants of the channel functions that manipulate file positions and file sizes. By representing positions and sizes by 64-bit integers (type int64) instead of regular integers (type int), these alternate functions allow operating on files whose sizes are greater than max_int.
References
The type of references (mutable indirection cells) containing a value of type 'a.
val ref : ('a : value_or_null). 'a -> 'a Core.ref @@ portableReturn a fresh reference containing the given value.
val (!) : ('a : value_or_null). 'a Core.ref -> 'a @@ portable!r returns the current contents of reference r. Equivalent to fun r -> r.contents.
val (:=) : ('a : value_or_null). 'a Core.ref -> 'a -> unit @@ portabler := a stores the value of a in reference r. Equivalent to fun r v -> r.contents <- v.
val incr : int Core.ref -> unit @@ portableIncrement the integer contained in the given reference. Equivalent to fun r -> r := succ !r.
val decr : int Core.ref -> unit @@ portableDecrement the integer contained in the given reference. Equivalent to fun r -> r := pred !r.
Result type
type (('a : value_or_null), ('b : value_or_null)) result =
('a, 'b) Stdlib.result =
Operations on format strings
Format strings are character strings with special lexical conventions that defines the functionality of formatted input/output functions. Format strings are used to read data with formatted input functions from module Scanf and to print data with formatted output functions from modules Printf and Format.
Format strings are made of three kinds of entities:
- conversions specifications, introduced by the special character
'%'followed by one or more characters specifying what kind of argument to read or print, - formatting indications, introduced by the special character
'@'followed by one or more characters specifying how to read or print the argument, - plain characters that are regular characters with usual lexical conventions. Plain characters specify string literals to be read in the input or printed in the output.
There is an additional lexical rule to escape the special characters '%' and '@' in format strings: if a special character follows a '%' character, it is treated as a plain character. In other words, "%%" is considered as a plain '%' and "%@" as a plain '@'.
For more information about conversion specifications and formatting indications available, read the documentation of modules Scanf, Printf and Format.
type ('a, 'b, 'c, 'd, 'e, 'f) format6 =
('a, 'b, 'c, 'd, 'e, 'f) CamlinternalFormatBasics.format6Format strings have a general and highly polymorphic type ('a, 'b, 'c, 'd, 'e, 'f) format6. The two simplified types, format and format4 below are included for backward compatibility with earlier releases of OCaml.
The meaning of format string type parameters is as follows:
'ais the type of the parameters of the format for formatted output functions (printf-style functions);'ais the type of the values read by the format for formatted input functions (scanf-style functions).
'bis the type of input source for formatted input functions and the type of output target for formatted output functions. Forprintf-style functions from modulePrintf,'bis typicallyout_channel; forprintf-style functions from moduleFormat,'bis typicallyFormat.formatter; forscanf-style functions from moduleScanf,'bis typicallyScanf.Scanning.in_channel.
Type argument 'b is also the type of the first argument given to user's defined printing functions for %a and %t conversions, and user's defined reading functions for %r conversion.
'cis the type of the result of the%aand%tprinting functions, and also the type of the argument transmitted to the first argument ofkprintf-style functions or to thekscanf-style functions.
'dis the type of parameters for thescanf-style functions.
'eis the type of the receiver function for thescanf-style functions.
'fis the final result type of a formatted input/output function invocation: for theprintf-style functions, it is typicallyunit; for thescanf-style functions, it is typically the result type of the receiver function.
type ('a, 'b, 'c, 'd) format4 = ('a, 'b, 'c, 'c, 'c, 'd) Core.format6type ('a, 'b, 'c) format = ('a, 'b, 'c, 'c) Core.format4val string_of_format :
('a, 'b, 'c, 'd, 'e, 'f) Core.format6 ->
string @@ portableConverts a format string into a string.
val format_of_string :
('a, 'b, 'c, 'd, 'e, 'f) Core.format6 ->
('a, 'b, 'c, 'd, 'e, 'f) Core.format6 @@ portableformat_of_string s returns a format string read from the string literal s. Note: format_of_string can not convert a string argument that is not a literal. If you need this functionality, use the more general Scanf.format_from_string function.
val (^^) :
('a, 'b, 'c, 'd, 'e, 'f) Core.format6 ->
('f, 'b, 'c, 'e, 'g, 'h) Core.format6 ->
('a, 'b, 'c, 'd, 'g, 'h) Core.format6 @@ portablef1 ^^ f2 catenates format strings f1 and f2. The result is a format string that behaves as the concatenation of format strings f1 and f2: in case of formatted output, it accepts arguments from f1, then arguments from f2; in case of formatted input, it returns results from f1, then results from f2.
Program termination
Terminate the process, returning the given status code to the operating system: usually 0 to indicate no errors, and a small positive integer to indicate failure. All open output channels are flushed with flush_all. An implicit exit 0 is performed each time a program terminates normally. An implicit exit 2 is performed if the program terminates early because of an uncaught exception.
Register the given function to be called at program termination time. The functions registered with at_exit will be called when the program executes Caml.exit, or terminates, either normally or because of an uncaught exception. The functions are called in 'last in, first out' order: the function most recently added with at_exit is called first.
include module type of struct include Core.Int.Replace_polymorphic_compare end
include module type of struct include Base_quickcheck.Export end
val quickcheck_generator_unit :
Base.unit Base_quickcheck.Generator.t @@ portableval quickcheck_generator_bool :
Base.bool Base_quickcheck.Generator.t @@ portableval quickcheck_generator_char :
Base.char Base_quickcheck.Generator.t @@ portableval quickcheck_generator_string :
Base.string Base_quickcheck.Generator.t @@ portableval quickcheck_generator_bytes :
Base.bytes Base_quickcheck.Generator.t @@ portableval quickcheck_generator_int : Base.int Base_quickcheck.Generator.t @@ portableval quickcheck_generator_int32 :
Base.int32 Base_quickcheck.Generator.t @@ portableval quickcheck_generator_int64 :
Base.int64 Base_quickcheck.Generator.t @@ portableval quickcheck_generator_nativeint :
Base.nativeint Base_quickcheck.Generator.t @@ portableval quickcheck_generator_float :
Base.float Base_quickcheck.Generator.t @@ portableval quickcheck_observer_unit : Base.unit Base_quickcheck.Observer.t @@ portableval quickcheck_observer_bool : Base.bool Base_quickcheck.Observer.t @@ portableval quickcheck_observer_char : Base.char Base_quickcheck.Observer.t @@ portableval quickcheck_observer_string :
Base.string Base_quickcheck.Observer.t @@ portableval quickcheck_observer_bytes :
Base.bytes Base_quickcheck.Observer.t @@ portableval quickcheck_observer_int : Base.int Base_quickcheck.Observer.t @@ portableval quickcheck_observer_int32 :
Base.int32 Base_quickcheck.Observer.t @@ portableval quickcheck_observer_int64 :
Base.int64 Base_quickcheck.Observer.t @@ portableval quickcheck_observer_nativeint :
Base.nativeint Base_quickcheck.Observer.t @@ portableval quickcheck_observer_float :
Base.float Base_quickcheck.Observer.t @@ portableval quickcheck_shrinker_unit : Base.unit Base_quickcheck.Shrinker.t @@ portableval quickcheck_shrinker_bool : Base.bool Base_quickcheck.Shrinker.t @@ portableval quickcheck_shrinker_char : Base.char Base_quickcheck.Shrinker.t @@ portableval quickcheck_shrinker_string :
Base.string Base_quickcheck.Shrinker.t @@ portableval quickcheck_shrinker_bytes :
Base.bytes Base_quickcheck.Shrinker.t @@ portableval quickcheck_shrinker_int : Base.int Base_quickcheck.Shrinker.t @@ portableval quickcheck_shrinker_int32 :
Base.int32 Base_quickcheck.Shrinker.t @@ portableval quickcheck_shrinker_int64 :
Base.int64 Base_quickcheck.Shrinker.t @@ portableval quickcheck_shrinker_nativeint :
Base.nativeint Base_quickcheck.Shrinker.t @@ portableval quickcheck_shrinker_float :
Base.float Base_quickcheck.Shrinker.t @@ portableinclude sig ... end
val quickcheck_generator_option :
('a : value_or_null). 'a Base_quickcheck.Generator.t ->
'a Base.option Base_quickcheck.Generator.tval quickcheck_generator_or_null :
'a Base_quickcheck.Generator.t ->
'a Base.or_null Base_quickcheck.Generator.tval quickcheck_generator_list :
('a : value_or_null). 'a Base_quickcheck.Generator.t ->
'a Base.list Base_quickcheck.Generator.tval quickcheck_generator_array :
'a Base_quickcheck.Generator.t ->
'a Base.array Base_quickcheck.Generator.tval quickcheck_generator_ref :
('a : value_or_null). 'a Base_quickcheck.Generator.t ->
'a Base.ref Base_quickcheck.Generator.tval quickcheck_generator_lazy_t :
'a Base_quickcheck.Generator.t ->
'a Base.Lazy.t Base_quickcheck.Generator.tval quickcheck_observer_option :
('a : value_or_null). 'a Base_quickcheck.Observer.t ->
'a Base.option Base_quickcheck.Observer.tval quickcheck_observer_or_null :
'a Base_quickcheck.Observer.t ->
'a Base.or_null Base_quickcheck.Observer.tval quickcheck_observer_list :
('a : value_or_null). 'a Base_quickcheck.Observer.t ->
'a Base.list Base_quickcheck.Observer.tval quickcheck_observer_array :
'a Base_quickcheck.Observer.t ->
'a Base.array Base_quickcheck.Observer.tval quickcheck_observer_ref :
('a : value_or_null). 'a Base_quickcheck.Observer.t ->
'a Base.ref Base_quickcheck.Observer.tval quickcheck_observer_lazy_t :
'a Base_quickcheck.Observer.t ->
'a Base.Lazy.t Base_quickcheck.Observer.tval quickcheck_shrinker_option :
('a : value_or_null). 'a Base_quickcheck.Shrinker.t ->
'a Base.option Base_quickcheck.Shrinker.tval quickcheck_shrinker_or_null :
'a Base_quickcheck.Shrinker.t ->
'a Base.or_null Base_quickcheck.Shrinker.tval quickcheck_shrinker_list :
('a : value_or_null). 'a Base_quickcheck.Shrinker.t ->
'a Base.list Base_quickcheck.Shrinker.tval quickcheck_shrinker_array :
'a Base_quickcheck.Shrinker.t ->
'a Base.array Base_quickcheck.Shrinker.tval quickcheck_shrinker_ref :
('a : value_or_null). 'a Base_quickcheck.Shrinker.t ->
'a Base.ref Base_quickcheck.Shrinker.tval quickcheck_shrinker_lazy_t :
'a Base_quickcheck.Shrinker.t ->
'a Base.Lazy.t Base_quickcheck.Shrinker.ttype (('f : value_or_null), ('s : value_or_null)) _either =
('f, 's) Base.Either.t =
type bigstring = Sexplib.Conv.bigstringval sexp_of_bigstring : Core.bigstring -> Sexplib0.Sexp.tval bigstring_of_sexp : Sexplib0.Sexp.t -> Core.bigstringtype mat = Sexplib.Conv.matinclude sig ... end
val sexp_of_mat : Core.mat -> Sexplib0.Sexp.tval mat_of_sexp : Sexplib0.Sexp.t -> Core.mattype vec = Sexplib.Conv.vecinclude sig ... end
val sexp_of_vec : Core.vec -> Sexplib0.Sexp.tval vec_of_sexp : Sexplib0.Sexp.t -> Core.vecval sexp_of_opaque : _ -> Base.Sexp.t @@ portableval opaque_of_sexp : Base.Sexp.t -> _ @@ portableval sexp_of_pair :
('a -> Base.Sexp.t) ->
('b -> Base.Sexp.t) ->
('a * 'b) ->
Base.Sexp.t @@ portableval pair_of_sexp :
(Base.Sexp.t -> 'a) ->
(Base.Sexp.t -> 'b) ->
Base.Sexp.t ->
'a * 'b @@ portableexception Of_sexp_error of Base.Exn.t * Base.Sexp.tval of_sexp_error : Base.String.t -> Base.Sexp.t -> _ @@ portableval of_sexp_error_exn : Base.Exn.t -> Base.Sexp.t -> _ @@ portableinclude module type of struct include Core.Interfaces end
module type Applicative = Core.Interfaces.Applicativemodule type Comparable__portable = Core.Interfaces.Comparable__portablemodule type Comparable = Core.Interfaces.Comparablemodule type Comparable__local__portable =
Core.Interfaces.Comparable__local__portablemodule type Comparable__local = Core.Interfaces.Comparable__localmodule type Comparable_binable__portable =
Core.Interfaces.Comparable_binable__portablemodule type Comparable_binable = Core.Interfaces.Comparable_binablemodule type Comparable_binable__local__portable =
Core.Interfaces.Comparable_binable__local__portablemodule type Comparable_binable__local =
Core.Interfaces.Comparable_binable__localmodule type Floatable = Core.Interfaces.Floatablemodule type Hashable = Core.Interfaces.Hashablemodule type Hashable_binable = Core.Interfaces.Hashable_binablemodule type Identifiable__portable = Core.Interfaces.Identifiable__portablemodule type Identifiable = Core.Interfaces.Identifiablemodule type Identifiable__local__portable =
Core.Interfaces.Identifiable__local__portablemodule type Identifiable__local = Core.Interfaces.Identifiable__localmodule type Infix_comparators = Core.Interfaces.Infix_comparatorsmodule type Intable = Core.Interfaces.Intablemodule type Monad = Core.Interfaces.Monadmodule type Quickcheckable = Core.Interfaces.Quickcheckablemodule type Robustly_comparable = Core.Interfaces.Robustly_comparablemodule type Sexpable = Core.Interfaces.Sexpablemodule type Stringable = Core.Interfaces.Stringablemodule type Unit = Core.Interfaces.Unitmodule type Binable = Core.Interfaces.Binablemodule type Stable_int63able = Core.Interfaces.Stable_int63ablemodule type Stable_int63able_without_comparator =
Core.Interfaces.Stable_int63able_without_comparatormodule type Stable_int63able_with_witness =
Core.Interfaces.Stable_int63able_with_witnessinclude sig ... end
module type Stable__portable = Core.Interfaces.Stable__portablemodule type Stable = Core.Interfaces.Stablemodule type Stable_without_comparator =
Core.Interfaces.Stable_without_comparatormodule type Stable1 = Core.Interfaces.Stable1module type Stable2 = Core.Interfaces.Stable2module type Stable3 = Core.Interfaces.Stable3module type Stable4 = Core.Interfaces.Stable4module type Stable_with_witness__portable =
Core.Interfaces.Stable_with_witness__portablemodule type Stable_with_witness = Core.Interfaces.Stable_with_witnessmodule type Stable_without_comparator_with_witness =
Core.Interfaces.Stable_without_comparator_with_witnessmodule type Stable1_with_witness = Core.Interfaces.Stable1_with_witnessmodule type Stable2_with_witness = Core.Interfaces.Stable2_with_witnessmodule type Stable3_with_witness = Core.Interfaces.Stable3_with_witnessmodule type Stable4_with_witness = Core.Interfaces.Stable4_with_witnessinclude module type of struct include Base.List.Infix end
val (@) :
('a : value_or_null). 'a Base.List.t ->
'a Base.List.t ->
'a Base.List.ttype never_returns = Core.Nothing.tval sexp_of_never_returns : Core.never_returns -> Sexplib0.Sexp.tval never_returns : Core.never_returns -> _ @@ portableinclude module type of struct include Base.Modes.Export end
include sig ... end
val compare_global :
('a : value_or_null). (('a : value_or_null) -> ('a : value_or_null) -> int) ->
('a : value_or_null) Core.global ->
('a : value_or_null) Core.global ->
intval compare_global__local :
('a : value_or_null). (('a : value_or_null) @ local ->
('a : value_or_null) @ local ->
int) ->
('a : value_or_null) Core.global @ local ->
('a : value_or_null) Core.global @ local ->
intval equal_global :
('a : value_or_null). (('a : value_or_null) -> ('a : value_or_null) -> bool) ->
('a : value_or_null) Core.global ->
('a : value_or_null) Core.global ->
boolval equal_global__local :
('a : value_or_null). (('a : value_or_null) @ local ->
('a : value_or_null) @ local ->
bool) ->
('a : value_or_null) Core.global @ local ->
('a : value_or_null) Core.global @ local ->
boolval hash_fold_global :
('a : value_or_null). (Ppx_hash_lib.Std.Hash.state ->
('a : value_or_null) ->
Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
('a : value_or_null) Core.global ->
Ppx_hash_lib.Std.Hash.stateval sexp_of_global :
('a : value_or_null). (('a : value_or_null) -> Sexplib0.Sexp.t) ->
('a : value_or_null) Core.global ->
Sexplib0.Sexp.tval sexp_of_global__stack :
('a : value_or_null). (('a : value_or_null) @ local ->
Sexplib0.Sexp.t @ local) ->
('a : value_or_null) Core.global @ local ->
Sexplib0.Sexp.t @ localval global_of_sexp :
('a : value_or_null). (Sexplib0.Sexp.t -> ('a : value_or_null)) ->
Sexplib0.Sexp.t ->
('a : value_or_null) Core.globalval global_sexp_grammar :
('a : value_or_null). ('a : value_or_null) Sexplib0.Sexp_grammar.t ->
('a : value_or_null) Core.global Sexplib0.Sexp_grammar.t @@ portableinclude sig ... end
val compare_portable :
('a : value_or_null). (('a : value_or_null) -> ('a : value_or_null) -> int) ->
('a : value_or_null) Core.portable ->
('a : value_or_null) Core.portable ->
intval compare_portable__local :
('a : value_or_null). (('a : value_or_null) @ local ->
('a : value_or_null) @ local ->
int) ->
('a : value_or_null) Core.portable @ local ->
('a : value_or_null) Core.portable @ local ->
intval equal_portable :
('a : value_or_null). (('a : value_or_null) -> ('a : value_or_null) -> bool) ->
('a : value_or_null) Core.portable ->
('a : value_or_null) Core.portable ->
boolval equal_portable__local :
('a : value_or_null). (('a : value_or_null) @ local ->
('a : value_or_null) @ local ->
bool) ->
('a : value_or_null) Core.portable @ local ->
('a : value_or_null) Core.portable @ local ->
boolval hash_fold_portable :
('a : value_or_null). (Ppx_hash_lib.Std.Hash.state ->
('a : value_or_null) ->
Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
('a : value_or_null) Core.portable ->
Ppx_hash_lib.Std.Hash.stateval sexp_of_portable :
('a : value_or_null). (('a : value_or_null) -> Sexplib0.Sexp.t) ->
('a : value_or_null) Core.portable ->
Sexplib0.Sexp.tval sexp_of_portable__stack :
('a : value_or_null). (('a : value_or_null) @ local ->
Sexplib0.Sexp.t @ local) ->
('a : value_or_null) Core.portable @ local ->
Sexplib0.Sexp.t @ localval portable_sexp_grammar :
('a : value_or_null). ('a : value_or_null) Sexplib0.Sexp_grammar.t ->
('a : value_or_null) Core.portable Sexplib0.Sexp_grammar.t @@ portableinclude sig ... end
val contended_of_sexp :
('a : value_or_null). (Sexplib0.Sexp.t -> ('a : value_or_null)) ->
Sexplib0.Sexp.t ->
('a : value_or_null) Core.contendedinclude sig ... end
include sig ... end
val hash_fold_many :
('a : value_or_null). (Ppx_hash_lib.Std.Hash.state ->
('a : value_or_null) ->
Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
('a : value_or_null) Core.many ->
Ppx_hash_lib.Std.Hash.stateval sexp_of_many :
('a : value_or_null). (('a : value_or_null) -> Sexplib0.Sexp.t) ->
('a : value_or_null) Core.many ->
Sexplib0.Sexp.tval sexp_of_many__stack :
('a : value_or_null). (('a : value_or_null) @ local ->
Sexplib0.Sexp.t @ local) ->
('a : value_or_null) Core.many @ local ->
Sexplib0.Sexp.t @ localval many_sexp_grammar :
('a : value_or_null). ('a : value_or_null) Sexplib0.Sexp_grammar.t ->
('a : value_or_null) Core.many Sexplib0.Sexp_grammar.t @@ portableinclude sig ... end
val compare_unyielding :
('a : value_or_null). (('a : value_or_null) -> ('a : value_or_null) -> int) ->
('a : value_or_null) Core.unyielding ->
('a : value_or_null) Core.unyielding ->
intval compare_unyielding__local :
('a : value_or_null). (('a : value_or_null) @ local ->
('a : value_or_null) @ local ->
int) ->
('a : value_or_null) Core.unyielding @ local ->
('a : value_or_null) Core.unyielding @ local ->
intval equal_unyielding :
('a : value_or_null). (('a : value_or_null) -> ('a : value_or_null) -> bool) ->
('a : value_or_null) Core.unyielding ->
('a : value_or_null) Core.unyielding ->
boolval equal_unyielding__local :
('a : value_or_null). (('a : value_or_null) @ local ->
('a : value_or_null) @ local ->
bool) ->
('a : value_or_null) Core.unyielding @ local ->
('a : value_or_null) Core.unyielding @ local ->
boolval hash_fold_unyielding :
('a : value_or_null). (Ppx_hash_lib.Std.Hash.state ->
('a : value_or_null) ->
Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
('a : value_or_null) Core.unyielding ->
Ppx_hash_lib.Std.Hash.stateval sexp_of_unyielding :
('a : value_or_null). (('a : value_or_null) -> Sexplib0.Sexp.t) ->
('a : value_or_null) Core.unyielding ->
Sexplib0.Sexp.tval sexp_of_unyielding__stack :
('a : value_or_null). (('a : value_or_null) @ local ->
Sexplib0.Sexp.t @ local) ->
('a : value_or_null) Core.unyielding @ local ->
Sexplib0.Sexp.t @ localval unyielding_of_sexp :
('a : value_or_null). (Sexplib0.Sexp.t -> ('a : value_or_null)) ->
Sexplib0.Sexp.t ->
('a : value_or_null) Core.unyieldingval unyielding_sexp_grammar :
('a : value_or_null). ('a : value_or_null) Sexplib0.Sexp_grammar.t ->
('a : value_or_null) Core.unyielding Sexplib0.Sexp_grammar.t @@ portableinclude module type of struct include Base.Ordering.Export end
include module type of struct include Core.Perms.Export end
type read = Core.Perms.Read.tinclude sig ... end
val bin_shape_read : Bin_prot.Shape.tval bin_size_read : Core.read Bin_prot.Size.sizerval bin_size_read__local : Core.read Bin_prot.Size.sizer__localval bin_write_read : Core.read Bin_prot.Write.writerval bin_write_read__local : Core.read Bin_prot.Write.writer__localval bin_writer_read : Core.read Bin_prot.Type_class.writerval bin_read_read : Core.read Bin_prot.Read.readerval __bin_read_read__ : Core.read Bin_prot.Read.vtag_readerval bin_reader_read : Core.read Bin_prot.Type_class.readerval bin_read : Core.read Bin_prot.Type_class.tval compare_read : Core.read -> Core.read -> Base.Int.tval compare_read__local : Core.read @ local -> Core.read @ local -> Base.Int.tval equal_read : Core.read -> Core.read -> Base.Bool.tval equal_read__local : Core.read @ local -> Core.read @ local -> Base.Bool.tval hash_fold_read :
Ppx_hash_lib.Std.Hash.state ->
Core.read ->
Ppx_hash_lib.Std.Hash.stateval hash_read : Core.read -> Ppx_hash_lib.Std.Hash.hash_valueval sexp_of_read : Core.read -> Sexplib0.Sexp.tval read_of_sexp : Sexplib0.Sexp.t -> Core.readval read_sexp_grammar : Core.read Sexplib0.Sexp_grammar.t @@ portableval stable_witness_read : Core.read Ppx_stable_witness_runtime.Stable_witness.ttype write = Core.Perms.Write.tWe don't expose bin_io for write due to a naming conflict with the functions exported by bin_io for read_write. If you want bin_io for write, use Write.t.
include sig ... end
val compare_write : Core.write -> Core.write -> Base.Int.tval compare_write__local :
Core.write @ local ->
Core.write @ local ->
Base.Int.tval equal_write : Core.write -> Core.write -> Base.Bool.tval equal_write__local :
Core.write @ local ->
Core.write @ local ->
Base.Bool.tval hash_fold_write :
Ppx_hash_lib.Std.Hash.state ->
Core.write ->
Ppx_hash_lib.Std.Hash.stateval hash_write : Core.write -> Ppx_hash_lib.Std.Hash.hash_valueval globalize_write : Core.write @ local -> Core.writeval sexp_of_write : Core.write -> Sexplib0.Sexp.tval write_of_sexp : Sexplib0.Sexp.t -> Core.writeval write_sexp_grammar : Core.write Sexplib0.Sexp_grammar.t @@ portableval stable_witness_write :
Core.write Ppx_stable_witness_runtime.Stable_witness.ttype immutable = Core.Perms.Immutable.tinclude sig ... end
val bin_shape_immutable : Bin_prot.Shape.tval bin_size_immutable : Core.immutable Bin_prot.Size.sizerval bin_size_immutable__local : Core.immutable Bin_prot.Size.sizer__localval bin_write_immutable : Core.immutable Bin_prot.Write.writerval bin_write_immutable__local : Core.immutable Bin_prot.Write.writer__localval bin_writer_immutable : Core.immutable Bin_prot.Type_class.writerval bin_read_immutable : Core.immutable Bin_prot.Read.readerval __bin_read_immutable__ : Core.immutable Bin_prot.Read.vtag_readerval bin_reader_immutable : Core.immutable Bin_prot.Type_class.readerval bin_immutable : Core.immutable Bin_prot.Type_class.tval compare_immutable : Core.immutable -> Core.immutable -> Base.Int.tval compare_immutable__local :
Core.immutable @ local ->
Core.immutable @ local ->
Base.Int.tval equal_immutable : Core.immutable -> Core.immutable -> Base.Bool.tval equal_immutable__local :
Core.immutable @ local ->
Core.immutable @ local ->
Base.Bool.tval globalize_immutable : Core.immutable @ local -> Core.immutableval hash_fold_immutable :
Ppx_hash_lib.Std.Hash.state ->
Core.immutable ->
Ppx_hash_lib.Std.Hash.stateval hash_immutable : Core.immutable -> Ppx_hash_lib.Std.Hash.hash_valueval sexp_of_immutable : Core.immutable -> Sexplib0.Sexp.tval immutable_of_sexp : Sexplib0.Sexp.t -> Core.immutableval immutable_sexp_grammar : Core.immutable Sexplib0.Sexp_grammar.t @@ portableval stable_witness_immutable :
Core.immutable Ppx_stable_witness_runtime.Stable_witness.ttype read_write = Core.Perms.Read_write.tinclude sig ... end
val bin_shape_read_write : Bin_prot.Shape.tval bin_size_read_write : Core.read_write Bin_prot.Size.sizerval bin_size_read_write__local : Core.read_write Bin_prot.Size.sizer__localval bin_write_read_write : Core.read_write Bin_prot.Write.writerval bin_write_read_write__local : Core.read_write Bin_prot.Write.writer__localval bin_writer_read_write : Core.read_write Bin_prot.Type_class.writerval bin_read_read_write : Core.read_write Bin_prot.Read.readerval __bin_read_read_write__ : Core.read_write Bin_prot.Read.vtag_readerval bin_reader_read_write : Core.read_write Bin_prot.Type_class.readerval bin_read_write : Core.read_write Bin_prot.Type_class.tval compare_read_write : Core.read_write -> Core.read_write -> Base.Int.tval compare_read_write__local :
Core.read_write @ local ->
Core.read_write @ local ->
Base.Int.tval equal_read_write : Core.read_write -> Core.read_write -> Base.Bool.tval equal_read_write__local :
Core.read_write @ local ->
Core.read_write @ local ->
Base.Bool.tval globalize_read_write : Core.read_write @ local -> Core.read_writeval hash_fold_read_write :
Ppx_hash_lib.Std.Hash.state ->
Core.read_write ->
Ppx_hash_lib.Std.Hash.stateval hash_read_write : Core.read_write -> Ppx_hash_lib.Std.Hash.hash_valueval sexp_of_read_write : Core.read_write -> Sexplib0.Sexp.tval read_write_of_sexp : Sexplib0.Sexp.t -> Core.read_writeval read_write_sexp_grammar :
Core.read_write Sexplib0.Sexp_grammar.t @@ portableval stable_witness_read_write :
Core.read_write Ppx_stable_witness_runtime.Stable_witness.ttype 'a perms = 'a Core.Perms.Upper_bound.tinclude sig ... end
val bin_shape_perms : Bin_prot.Shape.t -> Bin_prot.Shape.tval bin_size_perms :
'a. 'a Bin_prot.Size.sizer ->
'a Core.perms Bin_prot.Size.sizerval bin_size_perms__local :
'a. 'a Bin_prot.Size.sizer__local ->
'a Core.perms Bin_prot.Size.sizer__localval bin_write_perms :
'a. 'a Bin_prot.Write.writer ->
'a Core.perms Bin_prot.Write.writerval bin_write_perms__local :
'a. 'a Bin_prot.Write.writer__local ->
'a Core.perms Bin_prot.Write.writer__localval bin_writer_perms :
'a. 'a Bin_prot.Type_class.writer ->
'a Core.perms Bin_prot.Type_class.writerval bin_read_perms :
'a. 'a Bin_prot.Read.reader ->
'a Core.perms Bin_prot.Read.readerval __bin_read_perms__ :
'a. 'a Bin_prot.Read.reader ->
'a Core.perms Bin_prot.Read.vtag_readerval bin_reader_perms :
'a. 'a Bin_prot.Type_class.reader ->
'a Core.perms Bin_prot.Type_class.readerval bin_perms :
'a. 'a Bin_prot.Type_class.t ->
'a Core.perms Bin_prot.Type_class.tval compare_perms :
'a. ('a -> 'a -> Base.Int.t) ->
'a Core.perms ->
'a Core.perms ->
Base.Int.tval compare_perms__local :
'a. ('a @ local -> 'a @ local -> Base.Int.t) ->
'a Core.perms @ local ->
'a Core.perms @ local ->
Base.Int.tval equal_perms :
'a. ('a -> 'a -> Base.Bool.t) ->
'a Core.perms ->
'a Core.perms ->
Base.Bool.tval equal_perms__local :
'a. ('a @ local -> 'a @ local -> Base.Bool.t) ->
'a Core.perms @ local ->
'a Core.perms @ local ->
Base.Bool.tval globalize_perms :
'a. ('a @ local -> 'a) ->
'a Core.perms @ local ->
'a Core.permsval hash_fold_perms :
'a. (Ppx_hash_lib.Std.Hash.state -> 'a -> Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
'a Core.perms ->
Ppx_hash_lib.Std.Hash.stateval sexp_of_perms : ('a -> Sexplib0.Sexp.t) -> 'a Core.perms -> Sexplib0.Sexp.tval perms_of_sexp : (Sexplib0.Sexp.t -> 'a) -> Sexplib0.Sexp.t -> 'a Core.permsval perms_sexp_grammar :
'a. 'a Sexplib0.Sexp_grammar.t ->
'a Core.perms Sexplib0.Sexp_grammar.t @@ portableval stable_witness_perms :
'a Ppx_stable_witness_runtime.Stable_witness.t ->
'a Core.perms Ppx_stable_witness_runtime.Stable_witness.tinclude module type of struct include Base.Result.Export end
type (('ok : value_or_null), ('err : value_or_null)) _result =
('ok, 'err) Base.Result.t =
include sig ... end
val is_ok :
('ok : value_or_null) ('err : value_or_null). ('ok, 'err) Base.Result.t ->
boolval is_error :
('ok : value_or_null) ('err : value_or_null). ('ok, 'err) Base.Result.t ->
boolinclude module type of struct include Core.Iarray.O end
val (.:()) : 'a. 'a Basement.Stdlib_iarray_labels.t -> int -> 'aAn alias for get.
Raised if malloc in C bindings fail (errno * size).
phys_same is like phys_equal, but with a more general type. phys_same is useful when dealing with existential types, when one has a packed value and an unpacked value that one wants to check are physically equal. One can't use phys_equal in such a situation because the types are different.
val error :
?here:Stdlib.Lexing.position ->
?strict:unit ->
string ->
'a ->
('a -> Sexplib0.Sexp.t) ->
'b Core.Or_error.tval failwiths :
?strict:Base.Unit.t ->
here:lexing_position ->
Base.String.t ->
'a ->
('a -> Base.Sexp.t) ->
'b @ portableinclude sig ... end
val round :
?dir:[ `Down | `Nearest | `Up | `Zero ] @ local ->
Base.Float.t @ local ->
Base.Float.tinclude sig ... end
include module type of struct include Typerep_lib.Std_internal end
type-safe runtime type introspection
module Typerep = Typerep_lib.Std_internal.Typerepruntime type representations
val typerep_of_int63 : Base.Int63.t Typerep.t @@ portableval typerep_of_int32_u : Base.int32 Typerep.t @@ portableval typerep_of_int64_u : Base.int64 Typerep.t @@ portableval typerep_of_nativeint_u : Base.nativeint Typerep.t @@ portableval typerep_of_float_u : Base.float Typerep.t @@ portabletype tuple0 = Typerep_lib.Std_internal.tuple0val value_tuple0 : Core.tuple0 @@ portableval typerep_of_tuple0 : Core.tuple0 Typerep.t @@ portableval typename_of_int32_u : Base.int32 Typerep_lib.Typename.t @@ portableval typename_of_int64_u : Base.int64 Typerep_lib.Typename.t @@ portableval typename_of_nativeint_u : Base.nativeint Typerep_lib.Typename.t @@ portableval typename_of_int63 : Base.Int63.t Typerep_lib.Typename.t @@ portableval typename_of_float_u : Base.float Typerep_lib.Typename.t @@ portableval typename_of_function :
'a Typerep_lib.Typename.t ->
'b Typerep_lib.Typename.t ->
('a -> 'b) Typerep_lib.Typename.t @@ portableval typename_of_tuple0 : Core.tuple0 Typerep_lib.Typename.t @@ portableval typename_of_tuple2 :
'a Typerep_lib.Typename.t ->
'b Typerep_lib.Typename.t ->
('a * 'b) Typerep_lib.Typename.t @@ portableval typename_of_tuple3 :
'a Typerep_lib.Typename.t ->
'b Typerep_lib.Typename.t ->
'c Typerep_lib.Typename.t ->
('a * 'b * 'c) Typerep_lib.Typename.t @@ portableval typename_of_tuple4 :
'a Typerep_lib.Typename.t ->
'b Typerep_lib.Typename.t ->
'c Typerep_lib.Typename.t ->
'd Typerep_lib.Typename.t ->
('a * 'b * 'c * 'd) Typerep_lib.Typename.t @@ portableval typename_of_tuple5 :
'a Typerep_lib.Typename.t ->
'b Typerep_lib.Typename.t ->
'c Typerep_lib.Typename.t ->
'd Typerep_lib.Typename.t ->
'e Typerep_lib.Typename.t ->
('a * 'b * 'c * 'd * 'e) Typerep_lib.Typename.t @@ portableinclude sig ... end
val compare_array :
'a. ('a -> 'a -> Base.Int.t) ->
'a Base.Array.t ->
'a Base.Array.t ->
Base.Int.tval compare_array__local :
'a. ('a @ local -> 'a @ local -> Base.Int.t) ->
'a Base.Array.t @ local ->
'a Base.Array.t @ local ->
Base.Int.tval equal_array :
'a. ('a -> 'a -> Base.Bool.t) ->
'a Base.Array.t ->
'a Base.Array.t ->
Base.Bool.tval equal_array__local :
'a. ('a @ local -> 'a @ local -> Base.Bool.t) ->
'a Base.Array.t @ local ->
'a Base.Array.t @ local ->
Base.Bool.tval sexp_of_array__stack :
'a. ('a @ local -> Sexplib0.Sexp.t @ local) ->
'a Base.Array.t @ local ->
Sexplib0.Sexp.t @ localval array_sexp_grammar :
'a. 'a Sexplib0.Sexp_grammar.t ->
'a Base.Array.t Sexplib0.Sexp_grammar.t @@ portableinclude sig ... end
include sig ... end
val bin_size_array__local :
'a. 'a Bin_prot.Size.sizer__local ->
'a Core.Array.t Bin_prot.Size.sizer__localval bin_write_array__local :
'a. 'a Bin_prot.Write.writer__local ->
'a Core.Array.t Bin_prot.Write.writer__localval bin_writer_array :
'a. 'a Bin_prot.Type_class.writer ->
'a Core.Array.t Bin_prot.Type_class.writerval __bin_read_array__ :
'a. 'a Bin_prot.Read.reader ->
'a Core.Array.t Bin_prot.Read.vtag_readerval bin_reader_array :
'a. 'a Bin_prot.Type_class.reader ->
'a Core.Array.t Bin_prot.Type_class.readerval typerep_of_array :
'a Typerep_lib.Std.Typerep.t ->
'a Core.Array.t Typerep_lib.Std.Typerep.t @@ portableval typename_of_array :
'a Typerep_lib.Std.Typename.t ->
'a Core.Array.t Typerep_lib.Std.Typename.t @@ portableinclude sig ... end
val hash_fold_bool :
Ppx_hash_lib.Std.Hash.state ->
Base.Bool.t ->
Ppx_hash_lib.Std.Hash.stateinclude sig ... end
val hash_fold_char :
Ppx_hash_lib.Std.Hash.state ->
Base.Char.t ->
Ppx_hash_lib.Std.Hash.stateinclude sig ... end
val hash_fold_float :
Ppx_hash_lib.Std.Hash.state ->
Base.Float.t ->
Ppx_hash_lib.Std.Hash.stateinclude sig ... end
val compare_iarray :
'a. ('a -> 'a -> Base.Int.t) ->
'a Base.Iarray.t ->
'a Base.Iarray.t ->
Base.Int.tval compare_iarray__local :
'a. ('a @ local -> 'a @ local -> Base.Int.t) ->
'a Base.Iarray.t @ local ->
'a Base.Iarray.t @ local ->
Base.Int.tval equal_iarray :
'a. ('a -> 'a -> Base.Bool.t) ->
'a Base.Iarray.t ->
'a Base.Iarray.t ->
Base.Bool.tval equal_iarray__local :
'a. ('a @ local -> 'a @ local -> Base.Bool.t) ->
'a Base.Iarray.t @ local ->
'a Base.Iarray.t @ local ->
Base.Bool.tval sexp_of_iarray__stack :
'a. ('a @ local -> Sexplib0.Sexp.t @ local) ->
'a Base.Iarray.t @ local ->
Sexplib0.Sexp.t @ localval iarray_sexp_grammar :
'a. 'a Sexplib0.Sexp_grammar.t ->
'a Base.Iarray.t Sexplib0.Sexp_grammar.t @@ portableinclude sig ... end
include sig ... end
val bin_size_iarray__local :
'a. 'a Bin_prot.Size.sizer__local ->
'a Base.Iarray.t Bin_prot.Size.sizer__localval bin_write_iarray__local :
'a. 'a Bin_prot.Write.writer__local ->
'a Base.Iarray.t Bin_prot.Write.writer__localval bin_writer_iarray :
'a. 'a Bin_prot.Type_class.writer ->
'a Base.Iarray.t Bin_prot.Type_class.writerval __bin_read_iarray__ :
'a. 'a Bin_prot.Read.reader ->
'a Base.Iarray.t Bin_prot.Read.vtag_readerval bin_reader_iarray :
'a. 'a Bin_prot.Type_class.reader ->
'a Base.Iarray.t Bin_prot.Type_class.readerval hash_fold_iarray :
'a. (Ppx_hash_lib.Std.Hash.state -> 'a -> Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
'a Base.Iarray.t ->
Ppx_hash_lib.Std.Hash.stateval typerep_of_iarray :
'a Typerep_lib.Std.Typerep.t ->
'a Base.Iarray.t Typerep_lib.Std.Typerep.t @@ portableval typename_of_iarray :
'a Typerep_lib.Std.Typename.t ->
'a Base.Iarray.t Typerep_lib.Std.Typename.t @@ portableinclude sig ... end
include sig ... end
val hash_fold_int32 :
Ppx_hash_lib.Std.Hash.state ->
Base.Int32.t ->
Ppx_hash_lib.Std.Hash.stateinclude sig ... end
val hash_fold_int64 :
Ppx_hash_lib.Std.Hash.state ->
Base.Int64.t ->
Ppx_hash_lib.Std.Hash.stateinclude sig ... end
val bin_size_lazy_t__local :
'a. 'a Bin_prot.Size.sizer__local ->
'a lazy_t Bin_prot.Size.sizer__localval bin_write_lazy_t__local :
'a. 'a Bin_prot.Write.writer__local ->
'a lazy_t Bin_prot.Write.writer__localval bin_writer_lazy_t :
'a. 'a Bin_prot.Type_class.writer ->
'a lazy_t Bin_prot.Type_class.writerval bin_reader_lazy_t :
'a. 'a Bin_prot.Type_class.reader ->
'a lazy_t Bin_prot.Type_class.readerval compare_lazy_t__local :
'a. ('a @ local -> 'a @ local -> Base.Int.t) ->
'a lazy_t @ local ->
'a lazy_t @ local ->
Base.Int.tval hash_fold_lazy_t :
'a. (Ppx_hash_lib.Std.Hash.state -> 'a -> Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
'a lazy_t ->
Ppx_hash_lib.Std.Hash.stateval sexp_of_lazy_t__stack :
('a @ local -> Sexplib0.Sexp.t @ local) ->
'a lazy_t @ local ->
Sexplib0.Sexp.t @ localval lazy_t_sexp_grammar :
'a. 'a Sexplib0.Sexp_grammar.t ->
'a lazy_t Sexplib0.Sexp_grammar.t @@ portableval typerep_of_lazy_t :
'a Typerep_lib.Std.Typerep.t ->
'a lazy_t Typerep_lib.Std.Typerep.t @@ portableval typename_of_lazy_t :
'a Typerep_lib.Std.Typename.t ->
'a lazy_t Typerep_lib.Std.Typename.t @@ portableinclude sig ... end
val compare_list :
('a : value_or_null). (('a : value_or_null) ->
('a : value_or_null) ->
Base.Int.t) ->
('a : value_or_null) Base.List.t ->
('a : value_or_null) Base.List.t ->
Base.Int.tval compare_list__local :
('a : value_or_null). (('a : value_or_null) @ local ->
('a : value_or_null) @ local ->
Base.Int.t) ->
('a : value_or_null) Base.List.t @ local ->
('a : value_or_null) Base.List.t @ local ->
Base.Int.tval equal_list :
('a : value_or_null). (('a : value_or_null) ->
('a : value_or_null) ->
Base.Bool.t) ->
('a : value_or_null) Base.List.t ->
('a : value_or_null) Base.List.t ->
Base.Bool.tval equal_list__local :
('a : value_or_null). (('a : value_or_null) @ local ->
('a : value_or_null) @ local ->
Base.Bool.t) ->
('a : value_or_null) Base.List.t @ local ->
('a : value_or_null) Base.List.t @ local ->
Base.Bool.tval globalize_list :
('a : value_or_null). ('a @ local -> 'a) ->
'a Base.List.t @ local ->
'a Base.List.tval hash_fold_list :
('a : value_or_null). (Ppx_hash_lib.Std.Hash.state ->
('a : value_or_null) ->
Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
('a : value_or_null) Base.List.t ->
Ppx_hash_lib.Std.Hash.stateval sexp_of_list :
('a : value_or_null). (('a : value_or_null) -> Sexplib0.Sexp.t) ->
('a : value_or_null) Base.List.t ->
Sexplib0.Sexp.tval sexp_of_list__stack :
('a : value_or_null). (('a : value_or_null) @ local ->
Sexplib0.Sexp.t @ local) ->
('a : value_or_null) Base.List.t @ local ->
Sexplib0.Sexp.t @ localval list_of_sexp :
('a : value_or_null). (Sexplib0.Sexp.t -> ('a : value_or_null)) ->
Sexplib0.Sexp.t ->
('a : value_or_null) Base.List.tval list_sexp_grammar :
('a : value_or_null). ('a : value_or_null) Sexplib0.Sexp_grammar.t ->
('a : value_or_null) Base.List.t Sexplib0.Sexp_grammar.t @@ portableval typerep_of_list :
'a Typerep_lib.Std.Typerep.t ->
'a Base.List.t Typerep_lib.Std.Typerep.t @@ portableval typename_of_list :
'a Typerep_lib.Std.Typename.t ->
'a Base.List.t Typerep_lib.Std.Typename.t @@ portableinclude sig ... end
include sig ... end
val bin_size_list__local :
'a. 'a Bin_prot.Size.sizer__local ->
'a Core.List.t Bin_prot.Size.sizer__localval bin_write_list__local :
'a. 'a Bin_prot.Write.writer__local ->
'a Core.List.t Bin_prot.Write.writer__localval bin_writer_list :
'a. 'a Bin_prot.Type_class.writer ->
'a Core.List.t Bin_prot.Type_class.writerval __bin_read_list__ :
'a. 'a Bin_prot.Read.reader ->
'a Core.List.t Bin_prot.Read.vtag_readerval bin_reader_list :
'a. 'a Bin_prot.Type_class.reader ->
'a Core.List.t Bin_prot.Type_class.readerinclude sig ... end
val compare_nativeint__local :
Base.Nativeint.t @ local ->
Base.Nativeint.t @ local ->
Base.Int.tval equal_nativeint__local :
Base.Nativeint.t @ local ->
Base.Nativeint.t @ local ->
Base.Bool.tval hash_fold_nativeint :
Ppx_hash_lib.Std.Hash.state ->
Base.Nativeint.t ->
Ppx_hash_lib.Std.Hash.stateinclude sig ... end
val compare_option :
('a : value_or_null). (('a : value_or_null) ->
('a : value_or_null) ->
Base.Int.t) ->
('a : value_or_null) Base.Option.t ->
('a : value_or_null) Base.Option.t ->
Base.Int.tval compare_option__local :
('a : value_or_null). (('a : value_or_null) @ local ->
('a : value_or_null) @ local ->
Base.Int.t) ->
('a : value_or_null) Base.Option.t @ local ->
('a : value_or_null) Base.Option.t @ local ->
Base.Int.tval equal_option :
('a : value_or_null). (('a : value_or_null) ->
('a : value_or_null) ->
Base.Bool.t) ->
('a : value_or_null) Base.Option.t ->
('a : value_or_null) Base.Option.t ->
Base.Bool.tval equal_option__local :
('a : value_or_null). (('a : value_or_null) @ local ->
('a : value_or_null) @ local ->
Base.Bool.t) ->
('a : value_or_null) Base.Option.t @ local ->
('a : value_or_null) Base.Option.t @ local ->
Base.Bool.tval globalize_option :
('a : value_or_null). ('a @ local -> 'a) ->
'a Base.Option.t @ local ->
'a Base.Option.tval hash_fold_option :
('a : value_or_null). (Ppx_hash_lib.Std.Hash.state ->
('a : value_or_null) ->
Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
('a : value_or_null) Base.Option.t ->
Ppx_hash_lib.Std.Hash.stateval sexp_of_option :
('a : value_or_null). (('a : value_or_null) -> Sexplib0.Sexp.t) ->
('a : value_or_null) Base.Option.t ->
Sexplib0.Sexp.tval sexp_of_option__stack :
('a : value_or_null). (('a : value_or_null) @ local ->
Sexplib0.Sexp.t @ local) ->
('a : value_or_null) Base.Option.t @ local ->
Sexplib0.Sexp.t @ localval option_of_sexp :
('a : value_or_null). (Sexplib0.Sexp.t -> ('a : value_or_null)) ->
Sexplib0.Sexp.t ->
('a : value_or_null) Base.Option.tval option_sexp_grammar :
('a : value_or_null). ('a : value_or_null) Sexplib0.Sexp_grammar.t ->
('a : value_or_null) Base.Option.t Sexplib0.Sexp_grammar.t @@ portableval typerep_of_option :
'a Typerep_lib.Std.Typerep.t ->
'a Base.Option.t Typerep_lib.Std.Typerep.t @@ portableval typename_of_option :
'a Typerep_lib.Std.Typename.t ->
'a Base.Option.t Typerep_lib.Std.Typename.t @@ portableinclude sig ... end
include sig ... end
val bin_size_option__local :
'a. 'a Bin_prot.Size.sizer__local ->
'a Base.Option.t Bin_prot.Size.sizer__localval bin_write_option__local :
'a. 'a Bin_prot.Write.writer__local ->
'a Base.Option.t Bin_prot.Write.writer__localval bin_writer_option :
'a. 'a Bin_prot.Type_class.writer ->
'a Base.Option.t Bin_prot.Type_class.writerval __bin_read_option__ :
'a. 'a Bin_prot.Read.reader ->
'a Base.Option.t Bin_prot.Read.vtag_readerval bin_reader_option :
'a. 'a Bin_prot.Type_class.reader ->
'a Base.Option.t Bin_prot.Type_class.readerval bin_size_option__bits64 :
'a Bin_prot.Size.sizer ->
'a Base.Option.Constructors.t__bits64 Bin_prot.Size.sizer @@ portableval bin_size_option__bits64__local :
'a Bin_prot.Size.sizer__local ->
'a Base.Option.Constructors.t__bits64 Bin_prot.Size.sizer__local @@ portableval bin_write_option__bits64 :
'a Bin_prot.Write.writer ->
'a Base.Option.Constructors.t__bits64 Bin_prot.Write.writer @@ portableval bin_write_option__bits64__local :
'a Bin_prot.Write.writer__local ->
'a Base.Option.Constructors.t__bits64 Bin_prot.Write.writer__local @@ portableval bin_writer_option__bits64 :
'a Bin_prot.Type_class.writer ->
'a Base.Option.Constructors.t__bits64 Bin_prot.Type_class.writer @@ portableval bin_size_option__bits32 :
'a Bin_prot.Size.sizer ->
'a Base.Option.Constructors.t__bits32 Bin_prot.Size.sizer @@ portableval bin_size_option__bits32__local :
'a Bin_prot.Size.sizer__local ->
'a Base.Option.Constructors.t__bits32 Bin_prot.Size.sizer__local @@ portableval bin_write_option__bits32 :
'a Bin_prot.Write.writer ->
'a Base.Option.Constructors.t__bits32 Bin_prot.Write.writer @@ portableval bin_write_option__bits32__local :
'a Bin_prot.Write.writer__local ->
'a Base.Option.Constructors.t__bits32 Bin_prot.Write.writer__local @@ portableval bin_writer_option__bits32 :
'a Bin_prot.Type_class.writer ->
'a Base.Option.Constructors.t__bits32 Bin_prot.Type_class.writer @@ portableval bin_size_option__word :
'a Bin_prot.Size.sizer ->
'a Base.Option.Constructors.t__word Bin_prot.Size.sizer @@ portableval bin_size_option__word__local :
'a Bin_prot.Size.sizer__local ->
'a Base.Option.Constructors.t__word Bin_prot.Size.sizer__local @@ portableval bin_write_option__word :
'a Bin_prot.Write.writer ->
'a Base.Option.Constructors.t__word Bin_prot.Write.writer @@ portableval bin_write_option__word__local :
'a Bin_prot.Write.writer__local ->
'a Base.Option.Constructors.t__word Bin_prot.Write.writer__local @@ portableval bin_writer_option__word :
'a Bin_prot.Type_class.writer ->
'a Base.Option.Constructors.t__word Bin_prot.Type_class.writer @@ portableval bin_size_option__float64 :
'a Bin_prot.Size.sizer ->
'a Base.Option.Constructors.t__float64 Bin_prot.Size.sizer @@ portableval bin_size_option__float64__local :
'a Bin_prot.Size.sizer__local ->
'a Base.Option.Constructors.t__float64 Bin_prot.Size.sizer__local @@ portableval bin_write_option__float64 :
'a Bin_prot.Write.writer ->
'a Base.Option.Constructors.t__float64 Bin_prot.Write.writer @@ portableval bin_write_option__float64__local :
'a Bin_prot.Write.writer__local ->
'a Base.Option.Constructors.t__float64 Bin_prot.Write.writer__local @@ portableval bin_writer_option__float64 :
'a Bin_prot.Type_class.writer ->
'a Base.Option.Constructors.t__float64 Bin_prot.Type_class.writer @@ portableval bin_size_option__float32 :
'a Bin_prot.Size.sizer ->
'a Base.Option.Constructors.t__float32 Bin_prot.Size.sizer @@ portableval bin_size_option__float32__local :
'a Bin_prot.Size.sizer__local ->
'a Base.Option.Constructors.t__float32 Bin_prot.Size.sizer__local @@ portableval bin_write_option__float32 :
'a Bin_prot.Write.writer ->
'a Base.Option.Constructors.t__float32 Bin_prot.Write.writer @@ portableval bin_write_option__float32__local :
'a Bin_prot.Write.writer__local ->
'a Base.Option.Constructors.t__float32 Bin_prot.Write.writer__local @@ portableval bin_writer_option__float32 :
'a Bin_prot.Type_class.writer ->
'a Base.Option.Constructors.t__float32 Bin_prot.Type_class.writer @@ portableval bin_read_option__bits64 :
'a Bin_prot.Read.reader ->
'a Base.Option.Constructors.t__bits64 Bin_prot.Read.reader @@ portableval __bin_read_option__bits64__ :
'a Bin_prot.Read.reader ->
'a Base.Option.Constructors.t__bits64 Bin_prot.Read.vtag_reader @@ portableval bin_reader_option__bits64 :
'a Bin_prot.Type_class.reader ->
'a Base.Option.Constructors.t__bits64 Bin_prot.Type_class.reader @@ portableval bin_read_option__bits32 :
'a Bin_prot.Read.reader ->
'a Base.Option.Constructors.t__bits32 Bin_prot.Read.reader @@ portableval __bin_read_option__bits32__ :
'a Bin_prot.Read.reader ->
'a Base.Option.Constructors.t__bits32 Bin_prot.Read.vtag_reader @@ portableval bin_reader_option__bits32 :
'a Bin_prot.Type_class.reader ->
'a Base.Option.Constructors.t__bits32 Bin_prot.Type_class.reader @@ portableval bin_read_option__word :
'a Bin_prot.Read.reader ->
'a Base.Option.Constructors.t__word Bin_prot.Read.reader @@ portableval __bin_read_option__word__ :
'a Bin_prot.Read.reader ->
'a Base.Option.Constructors.t__word Bin_prot.Read.vtag_reader @@ portableval bin_reader_option__word :
'a Bin_prot.Type_class.reader ->
'a Base.Option.Constructors.t__word Bin_prot.Type_class.reader @@ portableval bin_read_option__float64 :
'a Bin_prot.Read.reader ->
'a Base.Option.Constructors.t__float64 Bin_prot.Read.reader @@ portableval __bin_read_option__float64__ :
'a Bin_prot.Read.reader ->
'a Base.Option.Constructors.t__float64 Bin_prot.Read.vtag_reader @@ portableval bin_reader_option__float64 :
'a Bin_prot.Type_class.reader ->
'a Base.Option.Constructors.t__float64 Bin_prot.Type_class.reader @@ portableval bin_read_option__float32 :
'a Bin_prot.Read.reader ->
'a Base.Option.Constructors.t__float32 Bin_prot.Read.reader @@ portableval __bin_read_option__float32__ :
'a Bin_prot.Read.reader ->
'a Base.Option.Constructors.t__float32 Bin_prot.Read.vtag_reader @@ portableval bin_reader_option__float32 :
'a Bin_prot.Type_class.reader ->
'a Base.Option.Constructors.t__float32 Bin_prot.Type_class.reader @@ portableval bin_option__bits64 :
'a Bin_prot.Type_class.t ->
'a Base.Option.Constructors.t__bits64 Bin_prot.Type_class.t @@ portableval bin_option__bits32 :
'a Bin_prot.Type_class.t ->
'a Base.Option.Constructors.t__bits32 Bin_prot.Type_class.t @@ portableval bin_option__word :
'a Bin_prot.Type_class.t ->
'a Base.Option.Constructors.t__word Bin_prot.Type_class.t @@ portableval bin_option__float64 :
'a Bin_prot.Type_class.t ->
'a Base.Option.Constructors.t__float64 Bin_prot.Type_class.t @@ portableval bin_option__float32 :
'a Bin_prot.Type_class.t ->
'a Base.Option.Constructors.t__float32 Bin_prot.Type_class.t @@ portableval compare_option__bits64 :
('a -> 'a -> Base.Int.t) ->
'a Base.Option.Constructors.t__bits64 ->
'a Base.Option.Constructors.t__bits64 ->
Base.Int.t @@ portableval compare_option__bits64__local :
('a @ local -> 'a @ local -> Base.Int.t) ->
'a Base.Option.Constructors.t__bits64 @ local ->
'a Base.Option.Constructors.t__bits64 @ local ->
Base.Int.t @@ portableval compare_option__bits32 :
('a -> 'a -> Base.Int.t) ->
'a Base.Option.Constructors.t__bits32 ->
'a Base.Option.Constructors.t__bits32 ->
Base.Int.t @@ portableval compare_option__bits32__local :
('a @ local -> 'a @ local -> Base.Int.t) ->
'a Base.Option.Constructors.t__bits32 @ local ->
'a Base.Option.Constructors.t__bits32 @ local ->
Base.Int.t @@ portableval compare_option__word :
('a -> 'a -> Base.Int.t) ->
'a Base.Option.Constructors.t__word ->
'a Base.Option.Constructors.t__word ->
Base.Int.t @@ portableval compare_option__word__local :
('a @ local -> 'a @ local -> Base.Int.t) ->
'a Base.Option.Constructors.t__word @ local ->
'a Base.Option.Constructors.t__word @ local ->
Base.Int.t @@ portableval compare_option__float64 :
('a -> 'a -> Base.Int.t) ->
'a Base.Option.Constructors.t__float64 ->
'a Base.Option.Constructors.t__float64 ->
Base.Int.t @@ portableval compare_option__float64__local :
('a @ local -> 'a @ local -> Base.Int.t) ->
'a Base.Option.Constructors.t__float64 @ local ->
'a Base.Option.Constructors.t__float64 @ local ->
Base.Int.t @@ portableval compare_option__float32 :
('a -> 'a -> Base.Int.t) ->
'a Base.Option.Constructors.t__float32 ->
'a Base.Option.Constructors.t__float32 ->
Base.Int.t @@ portableval compare_option__float32__local :
('a @ local -> 'a @ local -> Base.Int.t) ->
'a Base.Option.Constructors.t__float32 @ local ->
'a Base.Option.Constructors.t__float32 @ local ->
Base.Int.t @@ portableval equal_option__bits64 :
('a -> 'a -> Base.Bool.t) ->
'a Base.Option.Constructors.t__bits64 ->
'a Base.Option.Constructors.t__bits64 ->
Base.Bool.t @@ portableval equal_option__bits64__local :
('a @ local -> 'a @ local -> Base.Bool.t) ->
'a Base.Option.Constructors.t__bits64 @ local ->
'a Base.Option.Constructors.t__bits64 @ local ->
Base.Bool.t @@ portableval equal_option__bits32 :
('a -> 'a -> Base.Bool.t) ->
'a Base.Option.Constructors.t__bits32 ->
'a Base.Option.Constructors.t__bits32 ->
Base.Bool.t @@ portableval equal_option__bits32__local :
('a @ local -> 'a @ local -> Base.Bool.t) ->
'a Base.Option.Constructors.t__bits32 @ local ->
'a Base.Option.Constructors.t__bits32 @ local ->
Base.Bool.t @@ portableval equal_option__word :
('a -> 'a -> Base.Bool.t) ->
'a Base.Option.Constructors.t__word ->
'a Base.Option.Constructors.t__word ->
Base.Bool.t @@ portableval equal_option__word__local :
('a @ local -> 'a @ local -> Base.Bool.t) ->
'a Base.Option.Constructors.t__word @ local ->
'a Base.Option.Constructors.t__word @ local ->
Base.Bool.t @@ portableval equal_option__float64 :
('a -> 'a -> Base.Bool.t) ->
'a Base.Option.Constructors.t__float64 ->
'a Base.Option.Constructors.t__float64 ->
Base.Bool.t @@ portableval equal_option__float64__local :
('a @ local -> 'a @ local -> Base.Bool.t) ->
'a Base.Option.Constructors.t__float64 @ local ->
'a Base.Option.Constructors.t__float64 @ local ->
Base.Bool.t @@ portableval equal_option__float32 :
('a -> 'a -> Base.Bool.t) ->
'a Base.Option.Constructors.t__float32 ->
'a Base.Option.Constructors.t__float32 ->
Base.Bool.t @@ portableval equal_option__float32__local :
('a @ local -> 'a @ local -> Base.Bool.t) ->
'a Base.Option.Constructors.t__float32 @ local ->
'a Base.Option.Constructors.t__float32 @ local ->
Base.Bool.t @@ portableval sexp_of_option__bits64 :
('a -> Sexplib0.Sexp.t) ->
'a Base.Option.Constructors.t__bits64 ->
Sexplib0.Sexp.t @@ portableval sexp_of_option__bits32 :
('a -> Sexplib0.Sexp.t) ->
'a Base.Option.Constructors.t__bits32 ->
Sexplib0.Sexp.t @@ portableval sexp_of_option__word :
('a -> Sexplib0.Sexp.t) ->
'a Base.Option.Constructors.t__word ->
Sexplib0.Sexp.t @@ portableval sexp_of_option__float64 :
('a -> Sexplib0.Sexp.t) ->
'a Base.Option.Constructors.t__float64 ->
Sexplib0.Sexp.t @@ portableval sexp_of_option__float32 :
('a -> Sexplib0.Sexp.t) ->
'a Base.Option.Constructors.t__float32 ->
Sexplib0.Sexp.t @@ portableval sexp_of_option__bits64__stack :
('a @ local -> Sexplib0.Sexp.t @ local) ->
'a Base.Option.Constructors.t__bits64 @ local ->
Sexplib0.Sexp.t @ local @@ portableval sexp_of_option__bits32__stack :
('a @ local -> Sexplib0.Sexp.t @ local) ->
'a Base.Option.Constructors.t__bits32 @ local ->
Sexplib0.Sexp.t @ local @@ portableval sexp_of_option__word__stack :
('a @ local -> Sexplib0.Sexp.t @ local) ->
'a Base.Option.Constructors.t__word @ local ->
Sexplib0.Sexp.t @ local @@ portableval sexp_of_option__float64__stack :
('a @ local -> Sexplib0.Sexp.t @ local) ->
'a Base.Option.Constructors.t__float64 @ local ->
Sexplib0.Sexp.t @ local @@ portableval sexp_of_option__float32__stack :
('a @ local -> Sexplib0.Sexp.t @ local) ->
'a Base.Option.Constructors.t__float32 @ local ->
Sexplib0.Sexp.t @ local @@ portableval option_of_sexp__bits64 :
(Sexplib0.Sexp.t -> 'a) ->
Sexplib0.Sexp.t ->
'a Base.Option.Constructors.t__bits64 @@ portableval option_of_sexp__bits32 :
(Sexplib0.Sexp.t -> 'a) ->
Sexplib0.Sexp.t ->
'a Base.Option.Constructors.t__bits32 @@ portableval option_of_sexp__word :
(Sexplib0.Sexp.t -> 'a) ->
Sexplib0.Sexp.t ->
'a Base.Option.Constructors.t__word @@ portableval option_of_sexp__float64 :
(Sexplib0.Sexp.t -> 'a) ->
Sexplib0.Sexp.t ->
'a Base.Option.Constructors.t__float64 @@ portableval option_of_sexp__float32 :
(Sexplib0.Sexp.t -> 'a) ->
Sexplib0.Sexp.t ->
'a Base.Option.Constructors.t__float32 @@ portableinclude sig ... end
val bin_size_result :
('ok : value_or_null) ('err : value_or_null). ('ok : value_or_null)
Bin_prot.Size.sizer ->
('err : value_or_null) Bin_prot.Size.sizer ->
(('ok : value_or_null), ('err : value_or_null)) Core.result
Bin_prot.Size.sizerval bin_size_result__local :
('ok : value_or_null) ('err : value_or_null). ('ok : value_or_null)
Bin_prot.Size.sizer__local ->
('err : value_or_null) Bin_prot.Size.sizer__local ->
(('ok : value_or_null), ('err : value_or_null)) Core.result
Bin_prot.Size.sizer__localval bin_write_result :
('ok : value_or_null) ('err : value_or_null). ('ok : value_or_null)
Bin_prot.Write.writer ->
('err : value_or_null) Bin_prot.Write.writer ->
(('ok : value_or_null), ('err : value_or_null)) Core.result
Bin_prot.Write.writerval bin_write_result__local :
('ok : value_or_null) ('err : value_or_null). ('ok : value_or_null)
Bin_prot.Write.writer__local ->
('err : value_or_null) Bin_prot.Write.writer__local ->
(('ok : value_or_null), ('err : value_or_null)) Core.result
Bin_prot.Write.writer__localval bin_writer_result :
('ok : value_or_null) ('err : value_or_null). ('ok : value_or_null)
Bin_prot.Type_class.writer ->
('err : value_or_null) Bin_prot.Type_class.writer ->
(('ok : value_or_null), ('err : value_or_null)) Core.result
Bin_prot.Type_class.writerval bin_read_result :
('ok : value_or_null) ('err : value_or_null). ('ok : value_or_null)
Bin_prot.Read.reader ->
('err : value_or_null) Bin_prot.Read.reader ->
(('ok : value_or_null), ('err : value_or_null)) Core.result
Bin_prot.Read.readerval __bin_read_result__ :
('ok : value_or_null) ('err : value_or_null). ('ok : value_or_null)
Bin_prot.Read.reader ->
('err : value_or_null) Bin_prot.Read.reader ->
(('ok : value_or_null), ('err : value_or_null)) Core.result
Bin_prot.Read.vtag_readerval bin_reader_result :
('ok : value_or_null) ('err : value_or_null). ('ok : value_or_null)
Bin_prot.Type_class.reader ->
('err : value_or_null) Bin_prot.Type_class.reader ->
(('ok : value_or_null), ('err : value_or_null)) Core.result
Bin_prot.Type_class.readerval bin_result :
('ok : value_or_null) ('err : value_or_null). ('ok : value_or_null)
Bin_prot.Type_class.t ->
('err : value_or_null) Bin_prot.Type_class.t ->
(('ok : value_or_null), ('err : value_or_null)) Core.result
Bin_prot.Type_class.tval compare_result :
('ok : value_or_null) ('err : value_or_null). (('ok : value_or_null) ->
('ok : value_or_null) ->
Base.Int.t) ->
(('err : value_or_null) -> ('err : value_or_null) -> Base.Int.t) ->
(('ok : value_or_null), ('err : value_or_null)) Core.result ->
(('ok : value_or_null), ('err : value_or_null)) Core.result ->
Base.Int.tval compare_result__local :
('ok : value_or_null) ('err : value_or_null). (('ok : value_or_null) @ local ->
('ok : value_or_null) @ local ->
Base.Int.t) ->
(('err : value_or_null) @ local ->
('err : value_or_null) @ local ->
Base.Int.t) ->
(('ok : value_or_null), ('err : value_or_null)) Core.result @ local ->
(('ok : value_or_null), ('err : value_or_null)) Core.result @ local ->
Base.Int.tval equal_result :
('ok : value_or_null) ('err : value_or_null). (('ok : value_or_null) ->
('ok : value_or_null) ->
Base.Bool.t) ->
(('err : value_or_null) -> ('err : value_or_null) -> Base.Bool.t) ->
(('ok : value_or_null), ('err : value_or_null)) Core.result ->
(('ok : value_or_null), ('err : value_or_null)) Core.result ->
Base.Bool.tval equal_result__local :
('ok : value_or_null) ('err : value_or_null). (('ok : value_or_null) @ local ->
('ok : value_or_null) @ local ->
Base.Bool.t) ->
(('err : value_or_null) @ local ->
('err : value_or_null) @ local ->
Base.Bool.t) ->
(('ok : value_or_null), ('err : value_or_null)) Core.result @ local ->
(('ok : value_or_null), ('err : value_or_null)) Core.result @ local ->
Base.Bool.tval globalize_result :
('ok : value_or_null) ('err : value_or_null). ('ok @ local -> 'ok) ->
('err @ local -> 'err) ->
('ok, 'err) Core.result @ local ->
('ok, 'err) Core.resultval hash_fold_result :
('ok : value_or_null) ('err : value_or_null). (Ppx_hash_lib.Std.Hash.state ->
('ok : value_or_null) ->
Ppx_hash_lib.Std.Hash.state) ->
(Ppx_hash_lib.Std.Hash.state ->
('err : value_or_null) ->
Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
(('ok : value_or_null), ('err : value_or_null)) Core.result ->
Ppx_hash_lib.Std.Hash.stateval sexp_of_result :
('ok : value_or_null) ('err : value_or_null). (('ok : value_or_null) ->
Sexplib0.Sexp.t) ->
(('err : value_or_null) -> Sexplib0.Sexp.t) ->
(('ok : value_or_null), ('err : value_or_null)) Core.result ->
Sexplib0.Sexp.tval sexp_of_result__stack :
('ok : value_or_null) ('err : value_or_null). (('ok : value_or_null) @ local ->
Sexplib0.Sexp.t @ local) ->
(('err : value_or_null) @ local -> Sexplib0.Sexp.t @ local) ->
(('ok : value_or_null), ('err : value_or_null)) Core.result @ local ->
Sexplib0.Sexp.t @ localval result_of_sexp :
('ok : value_or_null) ('err : value_or_null). (Sexplib0.Sexp.t ->
('ok : value_or_null)) ->
(Sexplib0.Sexp.t -> ('err : value_or_null)) ->
Sexplib0.Sexp.t ->
(('ok : value_or_null), ('err : value_or_null)) Core.resultval result_sexp_grammar :
('ok : value_or_null) ('err : value_or_null). ('ok : value_or_null)
Sexplib0.Sexp_grammar.t ->
('err : value_or_null) Sexplib0.Sexp_grammar.t ->
(('ok : value_or_null), ('err : value_or_null)) Core.result
Sexplib0.Sexp_grammar.t @@ portableval typerep_of_result :
'ok Typerep_lib.Std.Typerep.t ->
'err Typerep_lib.Std.Typerep.t ->
('ok, 'err) Core.result Typerep_lib.Std.Typerep.t @@ portableval typename_of_result :
'ok Typerep_lib.Std.Typename.t ->
'err Typerep_lib.Std.Typename.t ->
('ok, 'err) Core.result Typerep_lib.Std.Typename.t @@ portableval bin_shape_result__bits64 :
Bin_prot.Shape.t ->
Bin_prot.Shape.t ->
Bin_prot.Shape.t @@ portableval bin_shape_result__bits32 :
Bin_prot.Shape.t ->
Bin_prot.Shape.t ->
Bin_prot.Shape.t @@ portableval bin_shape_result__word :
Bin_prot.Shape.t ->
Bin_prot.Shape.t ->
Bin_prot.Shape.t @@ portableval bin_shape_result__float64 :
Bin_prot.Shape.t ->
Bin_prot.Shape.t ->
Bin_prot.Shape.t @@ portableval bin_shape_result__float32 :
Bin_prot.Shape.t ->
Bin_prot.Shape.t ->
Bin_prot.Shape.t @@ portableval bin_size_result__bits64 :
'ok Bin_prot.Size.sizer ->
'err Bin_prot.Size.sizer ->
('ok, 'err) Base.Result.t__bits64 Bin_prot.Size.sizer @@ portableval bin_size_result__bits64__local :
'ok Bin_prot.Size.sizer__local ->
'err Bin_prot.Size.sizer__local ->
('ok, 'err) Base.Result.t__bits64 Bin_prot.Size.sizer__local @@ portableval bin_write_result__bits64 :
'ok Bin_prot.Write.writer ->
'err Bin_prot.Write.writer ->
('ok, 'err) Base.Result.t__bits64 Bin_prot.Write.writer @@ portableval bin_write_result__bits64__local :
'ok Bin_prot.Write.writer__local ->
'err Bin_prot.Write.writer__local ->
('ok, 'err) Base.Result.t__bits64 Bin_prot.Write.writer__local @@ portableval bin_writer_result__bits64 :
'ok Bin_prot.Type_class.writer ->
'err Bin_prot.Type_class.writer ->
('ok, 'err) Base.Result.t__bits64 Bin_prot.Type_class.writer @@ portableval bin_size_result__bits32 :
'ok Bin_prot.Size.sizer ->
'err Bin_prot.Size.sizer ->
('ok, 'err) Base.Result.t__bits32 Bin_prot.Size.sizer @@ portableval bin_size_result__bits32__local :
'ok Bin_prot.Size.sizer__local ->
'err Bin_prot.Size.sizer__local ->
('ok, 'err) Base.Result.t__bits32 Bin_prot.Size.sizer__local @@ portableval bin_write_result__bits32 :
'ok Bin_prot.Write.writer ->
'err Bin_prot.Write.writer ->
('ok, 'err) Base.Result.t__bits32 Bin_prot.Write.writer @@ portableval bin_write_result__bits32__local :
'ok Bin_prot.Write.writer__local ->
'err Bin_prot.Write.writer__local ->
('ok, 'err) Base.Result.t__bits32 Bin_prot.Write.writer__local @@ portableval bin_writer_result__bits32 :
'ok Bin_prot.Type_class.writer ->
'err Bin_prot.Type_class.writer ->
('ok, 'err) Base.Result.t__bits32 Bin_prot.Type_class.writer @@ portableval bin_size_result__word :
'ok Bin_prot.Size.sizer ->
'err Bin_prot.Size.sizer ->
('ok, 'err) Base.Result.t__word Bin_prot.Size.sizer @@ portableval bin_size_result__word__local :
'ok Bin_prot.Size.sizer__local ->
'err Bin_prot.Size.sizer__local ->
('ok, 'err) Base.Result.t__word Bin_prot.Size.sizer__local @@ portableval bin_write_result__word :
'ok Bin_prot.Write.writer ->
'err Bin_prot.Write.writer ->
('ok, 'err) Base.Result.t__word Bin_prot.Write.writer @@ portableval bin_write_result__word__local :
'ok Bin_prot.Write.writer__local ->
'err Bin_prot.Write.writer__local ->
('ok, 'err) Base.Result.t__word Bin_prot.Write.writer__local @@ portableval bin_writer_result__word :
'ok Bin_prot.Type_class.writer ->
'err Bin_prot.Type_class.writer ->
('ok, 'err) Base.Result.t__word Bin_prot.Type_class.writer @@ portableval bin_size_result__float64 :
'ok Bin_prot.Size.sizer ->
'err Bin_prot.Size.sizer ->
('ok, 'err) Base.Result.t__float64 Bin_prot.Size.sizer @@ portableval bin_size_result__float64__local :
'ok Bin_prot.Size.sizer__local ->
'err Bin_prot.Size.sizer__local ->
('ok, 'err) Base.Result.t__float64 Bin_prot.Size.sizer__local @@ portableval bin_write_result__float64 :
'ok Bin_prot.Write.writer ->
'err Bin_prot.Write.writer ->
('ok, 'err) Base.Result.t__float64 Bin_prot.Write.writer @@ portableval bin_write_result__float64__local :
'ok Bin_prot.Write.writer__local ->
'err Bin_prot.Write.writer__local ->
('ok, 'err) Base.Result.t__float64 Bin_prot.Write.writer__local @@ portableval bin_writer_result__float64 :
'ok Bin_prot.Type_class.writer ->
'err Bin_prot.Type_class.writer ->
('ok, 'err) Base.Result.t__float64 Bin_prot.Type_class.writer @@ portableval bin_size_result__float32 :
'ok Bin_prot.Size.sizer ->
'err Bin_prot.Size.sizer ->
('ok, 'err) Base.Result.t__float32 Bin_prot.Size.sizer @@ portableval bin_size_result__float32__local :
'ok Bin_prot.Size.sizer__local ->
'err Bin_prot.Size.sizer__local ->
('ok, 'err) Base.Result.t__float32 Bin_prot.Size.sizer__local @@ portableval bin_write_result__float32 :
'ok Bin_prot.Write.writer ->
'err Bin_prot.Write.writer ->
('ok, 'err) Base.Result.t__float32 Bin_prot.Write.writer @@ portableval bin_write_result__float32__local :
'ok Bin_prot.Write.writer__local ->
'err Bin_prot.Write.writer__local ->
('ok, 'err) Base.Result.t__float32 Bin_prot.Write.writer__local @@ portableval bin_writer_result__float32 :
'ok Bin_prot.Type_class.writer ->
'err Bin_prot.Type_class.writer ->
('ok, 'err) Base.Result.t__float32 Bin_prot.Type_class.writer @@ portableval bin_read_result__bits64 :
'ok Bin_prot.Read.reader ->
'err Bin_prot.Read.reader ->
('ok, 'err) Base.Result.t__bits64 Bin_prot.Read.reader @@ portableval __bin_read_result__bits64__ :
'ok Bin_prot.Read.reader ->
'err Bin_prot.Read.reader ->
('ok, 'err) Base.Result.t__bits64 Bin_prot.Read.vtag_reader @@ portableval bin_reader_result__bits64 :
'ok Bin_prot.Type_class.reader ->
'err Bin_prot.Type_class.reader ->
('ok, 'err) Base.Result.t__bits64 Bin_prot.Type_class.reader @@ portableval bin_read_result__bits32 :
'ok Bin_prot.Read.reader ->
'err Bin_prot.Read.reader ->
('ok, 'err) Base.Result.t__bits32 Bin_prot.Read.reader @@ portableval __bin_read_result__bits32__ :
'ok Bin_prot.Read.reader ->
'err Bin_prot.Read.reader ->
('ok, 'err) Base.Result.t__bits32 Bin_prot.Read.vtag_reader @@ portableval bin_reader_result__bits32 :
'ok Bin_prot.Type_class.reader ->
'err Bin_prot.Type_class.reader ->
('ok, 'err) Base.Result.t__bits32 Bin_prot.Type_class.reader @@ portableval bin_read_result__word :
'ok Bin_prot.Read.reader ->
'err Bin_prot.Read.reader ->
('ok, 'err) Base.Result.t__word Bin_prot.Read.reader @@ portableval __bin_read_result__word__ :
'ok Bin_prot.Read.reader ->
'err Bin_prot.Read.reader ->
('ok, 'err) Base.Result.t__word Bin_prot.Read.vtag_reader @@ portableval bin_reader_result__word :
'ok Bin_prot.Type_class.reader ->
'err Bin_prot.Type_class.reader ->
('ok, 'err) Base.Result.t__word Bin_prot.Type_class.reader @@ portableval bin_read_result__float64 :
'ok Bin_prot.Read.reader ->
'err Bin_prot.Read.reader ->
('ok, 'err) Base.Result.t__float64 Bin_prot.Read.reader @@ portableval __bin_read_result__float64__ :
'ok Bin_prot.Read.reader ->
'err Bin_prot.Read.reader ->
('ok, 'err) Base.Result.t__float64 Bin_prot.Read.vtag_reader @@ portableval bin_reader_result__float64 :
'ok Bin_prot.Type_class.reader ->
'err Bin_prot.Type_class.reader ->
('ok, 'err) Base.Result.t__float64 Bin_prot.Type_class.reader @@ portableval bin_read_result__float32 :
'ok Bin_prot.Read.reader ->
'err Bin_prot.Read.reader ->
('ok, 'err) Base.Result.t__float32 Bin_prot.Read.reader @@ portableval __bin_read_result__float32__ :
'ok Bin_prot.Read.reader ->
'err Bin_prot.Read.reader ->
('ok, 'err) Base.Result.t__float32 Bin_prot.Read.vtag_reader @@ portableval bin_reader_result__float32 :
'ok Bin_prot.Type_class.reader ->
'err Bin_prot.Type_class.reader ->
('ok, 'err) Base.Result.t__float32 Bin_prot.Type_class.reader @@ portableval bin_result__bits64 :
'ok Bin_prot.Type_class.t ->
'err Bin_prot.Type_class.t ->
('ok, 'err) Base.Result.t__bits64 Bin_prot.Type_class.t @@ portableval bin_result__bits32 :
'ok Bin_prot.Type_class.t ->
'err Bin_prot.Type_class.t ->
('ok, 'err) Base.Result.t__bits32 Bin_prot.Type_class.t @@ portableval bin_result__word :
'ok Bin_prot.Type_class.t ->
'err Bin_prot.Type_class.t ->
('ok, 'err) Base.Result.t__word Bin_prot.Type_class.t @@ portableval bin_result__float64 :
'ok Bin_prot.Type_class.t ->
'err Bin_prot.Type_class.t ->
('ok, 'err) Base.Result.t__float64 Bin_prot.Type_class.t @@ portableval bin_result__float32 :
'ok Bin_prot.Type_class.t ->
'err Bin_prot.Type_class.t ->
('ok, 'err) Base.Result.t__float32 Bin_prot.Type_class.t @@ portableval compare_result__bits64 :
('ok -> 'ok -> Base.Int.t) ->
('err -> 'err -> Base.Int.t) ->
('ok, 'err) Base.Result.t__bits64 ->
('ok, 'err) Base.Result.t__bits64 ->
Base.Int.t @@ portableval compare_result__bits64__local :
('ok @ local -> 'ok @ local -> Base.Int.t) ->
('err @ local -> 'err @ local -> Base.Int.t) ->
('ok, 'err) Base.Result.t__bits64 @ local ->
('ok, 'err) Base.Result.t__bits64 @ local ->
Base.Int.t @@ portableval compare_result__bits32 :
('ok -> 'ok -> Base.Int.t) ->
('err -> 'err -> Base.Int.t) ->
('ok, 'err) Base.Result.t__bits32 ->
('ok, 'err) Base.Result.t__bits32 ->
Base.Int.t @@ portableval compare_result__bits32__local :
('ok @ local -> 'ok @ local -> Base.Int.t) ->
('err @ local -> 'err @ local -> Base.Int.t) ->
('ok, 'err) Base.Result.t__bits32 @ local ->
('ok, 'err) Base.Result.t__bits32 @ local ->
Base.Int.t @@ portableval compare_result__word :
('ok -> 'ok -> Base.Int.t) ->
('err -> 'err -> Base.Int.t) ->
('ok, 'err) Base.Result.t__word ->
('ok, 'err) Base.Result.t__word ->
Base.Int.t @@ portableval compare_result__word__local :
('ok @ local -> 'ok @ local -> Base.Int.t) ->
('err @ local -> 'err @ local -> Base.Int.t) ->
('ok, 'err) Base.Result.t__word @ local ->
('ok, 'err) Base.Result.t__word @ local ->
Base.Int.t @@ portableval compare_result__float64 :
('ok -> 'ok -> Base.Int.t) ->
('err -> 'err -> Base.Int.t) ->
('ok, 'err) Base.Result.t__float64 ->
('ok, 'err) Base.Result.t__float64 ->
Base.Int.t @@ portableval compare_result__float64__local :
('ok @ local -> 'ok @ local -> Base.Int.t) ->
('err @ local -> 'err @ local -> Base.Int.t) ->
('ok, 'err) Base.Result.t__float64 @ local ->
('ok, 'err) Base.Result.t__float64 @ local ->
Base.Int.t @@ portableval compare_result__float32 :
('ok -> 'ok -> Base.Int.t) ->
('err -> 'err -> Base.Int.t) ->
('ok, 'err) Base.Result.t__float32 ->
('ok, 'err) Base.Result.t__float32 ->
Base.Int.t @@ portableval compare_result__float32__local :
('ok @ local -> 'ok @ local -> Base.Int.t) ->
('err @ local -> 'err @ local -> Base.Int.t) ->
('ok, 'err) Base.Result.t__float32 @ local ->
('ok, 'err) Base.Result.t__float32 @ local ->
Base.Int.t @@ portableval equal_result__bits64 :
('ok -> 'ok -> Base.Bool.t) ->
('err -> 'err -> Base.Bool.t) ->
('ok, 'err) Base.Result.t__bits64 ->
('ok, 'err) Base.Result.t__bits64 ->
Base.Bool.t @@ portableval equal_result__bits64__local :
('ok @ local -> 'ok @ local -> Base.Bool.t) ->
('err @ local -> 'err @ local -> Base.Bool.t) ->
('ok, 'err) Base.Result.t__bits64 @ local ->
('ok, 'err) Base.Result.t__bits64 @ local ->
Base.Bool.t @@ portableval equal_result__bits32 :
('ok -> 'ok -> Base.Bool.t) ->
('err -> 'err -> Base.Bool.t) ->
('ok, 'err) Base.Result.t__bits32 ->
('ok, 'err) Base.Result.t__bits32 ->
Base.Bool.t @@ portableval equal_result__bits32__local :
('ok @ local -> 'ok @ local -> Base.Bool.t) ->
('err @ local -> 'err @ local -> Base.Bool.t) ->
('ok, 'err) Base.Result.t__bits32 @ local ->
('ok, 'err) Base.Result.t__bits32 @ local ->
Base.Bool.t @@ portableval equal_result__word :
('ok -> 'ok -> Base.Bool.t) ->
('err -> 'err -> Base.Bool.t) ->
('ok, 'err) Base.Result.t__word ->
('ok, 'err) Base.Result.t__word ->
Base.Bool.t @@ portableval equal_result__word__local :
('ok @ local -> 'ok @ local -> Base.Bool.t) ->
('err @ local -> 'err @ local -> Base.Bool.t) ->
('ok, 'err) Base.Result.t__word @ local ->
('ok, 'err) Base.Result.t__word @ local ->
Base.Bool.t @@ portableval equal_result__float64 :
('ok -> 'ok -> Base.Bool.t) ->
('err -> 'err -> Base.Bool.t) ->
('ok, 'err) Base.Result.t__float64 ->
('ok, 'err) Base.Result.t__float64 ->
Base.Bool.t @@ portableval equal_result__float64__local :
('ok @ local -> 'ok @ local -> Base.Bool.t) ->
('err @ local -> 'err @ local -> Base.Bool.t) ->
('ok, 'err) Base.Result.t__float64 @ local ->
('ok, 'err) Base.Result.t__float64 @ local ->
Base.Bool.t @@ portableval equal_result__float32 :
('ok -> 'ok -> Base.Bool.t) ->
('err -> 'err -> Base.Bool.t) ->
('ok, 'err) Base.Result.t__float32 ->
('ok, 'err) Base.Result.t__float32 ->
Base.Bool.t @@ portableval equal_result__float32__local :
('ok @ local -> 'ok @ local -> Base.Bool.t) ->
('err @ local -> 'err @ local -> Base.Bool.t) ->
('ok, 'err) Base.Result.t__float32 @ local ->
('ok, 'err) Base.Result.t__float32 @ local ->
Base.Bool.t @@ portableval sexp_of_result__bits64 :
('ok -> Sexplib0.Sexp.t) ->
('err -> Sexplib0.Sexp.t) ->
('ok, 'err) Base.Result.t__bits64 ->
Sexplib0.Sexp.t @@ portableval sexp_of_result__bits32 :
('ok -> Sexplib0.Sexp.t) ->
('err -> Sexplib0.Sexp.t) ->
('ok, 'err) Base.Result.t__bits32 ->
Sexplib0.Sexp.t @@ portableval sexp_of_result__word :
('ok -> Sexplib0.Sexp.t) ->
('err -> Sexplib0.Sexp.t) ->
('ok, 'err) Base.Result.t__word ->
Sexplib0.Sexp.t @@ portableval sexp_of_result__float64 :
('ok -> Sexplib0.Sexp.t) ->
('err -> Sexplib0.Sexp.t) ->
('ok, 'err) Base.Result.t__float64 ->
Sexplib0.Sexp.t @@ portableval sexp_of_result__float32 :
('ok -> Sexplib0.Sexp.t) ->
('err -> Sexplib0.Sexp.t) ->
('ok, 'err) Base.Result.t__float32 ->
Sexplib0.Sexp.t @@ portableval sexp_of_result__bits64__stack :
('ok @ local -> Sexplib0.Sexp.t @ local) ->
('err @ local -> Sexplib0.Sexp.t @ local) ->
('ok, 'err) Base.Result.t__bits64 @ local ->
Sexplib0.Sexp.t @ local @@ portableval sexp_of_result__bits32__stack :
('ok @ local -> Sexplib0.Sexp.t @ local) ->
('err @ local -> Sexplib0.Sexp.t @ local) ->
('ok, 'err) Base.Result.t__bits32 @ local ->
Sexplib0.Sexp.t @ local @@ portableval sexp_of_result__word__stack :
('ok @ local -> Sexplib0.Sexp.t @ local) ->
('err @ local -> Sexplib0.Sexp.t @ local) ->
('ok, 'err) Base.Result.t__word @ local ->
Sexplib0.Sexp.t @ local @@ portableval sexp_of_result__float64__stack :
('ok @ local -> Sexplib0.Sexp.t @ local) ->
('err @ local -> Sexplib0.Sexp.t @ local) ->
('ok, 'err) Base.Result.t__float64 @ local ->
Sexplib0.Sexp.t @ local @@ portableval sexp_of_result__float32__stack :
('ok @ local -> Sexplib0.Sexp.t @ local) ->
('err @ local -> Sexplib0.Sexp.t @ local) ->
('ok, 'err) Base.Result.t__float32 @ local ->
Sexplib0.Sexp.t @ local @@ portableval result_of_sexp__bits64 :
(Sexplib0.Sexp.t -> 'ok) ->
(Sexplib0.Sexp.t -> 'err) ->
Sexplib0.Sexp.t ->
('ok, 'err) Base.Result.t__bits64 @@ portableval result_of_sexp__bits32 :
(Sexplib0.Sexp.t -> 'ok) ->
(Sexplib0.Sexp.t -> 'err) ->
Sexplib0.Sexp.t ->
('ok, 'err) Base.Result.t__bits32 @@ portableval result_of_sexp__word :
(Sexplib0.Sexp.t -> 'ok) ->
(Sexplib0.Sexp.t -> 'err) ->
Sexplib0.Sexp.t ->
('ok, 'err) Base.Result.t__word @@ portableval result_of_sexp__float64 :
(Sexplib0.Sexp.t -> 'ok) ->
(Sexplib0.Sexp.t -> 'err) ->
Sexplib0.Sexp.t ->
('ok, 'err) Base.Result.t__float64 @@ portableval result_of_sexp__float32 :
(Sexplib0.Sexp.t -> 'ok) ->
(Sexplib0.Sexp.t -> 'err) ->
Sexplib0.Sexp.t ->
('ok, 'err) Base.Result.t__float32 @@ portableinclude sig ... end
val hash_fold_string :
Ppx_hash_lib.Std.Hash.state ->
Base.String.t ->
Ppx_hash_lib.Std.Hash.stateinclude sig ... end
include sig ... end
val bin_size_ref :
('a : value_or_null). ('a : value_or_null) Bin_prot.Size.sizer ->
('a : value_or_null) Core.ref Bin_prot.Size.sizerval bin_size_ref__local :
('a : value_or_null). ('a : value_or_null) Bin_prot.Size.sizer__local ->
('a : value_or_null) Core.ref Bin_prot.Size.sizer__localval bin_write_ref :
('a : value_or_null). ('a : value_or_null) Bin_prot.Write.writer ->
('a : value_or_null) Core.ref Bin_prot.Write.writerval bin_write_ref__local :
('a : value_or_null). ('a : value_or_null) Bin_prot.Write.writer__local ->
('a : value_or_null) Core.ref Bin_prot.Write.writer__localval bin_writer_ref :
('a : value_or_null). ('a : value_or_null) Bin_prot.Type_class.writer ->
('a : value_or_null) Core.ref Bin_prot.Type_class.writerval bin_read_ref :
('a : value_or_null). ('a : value_or_null) Bin_prot.Read.reader ->
('a : value_or_null) Core.ref Bin_prot.Read.readerval __bin_read_ref__ :
('a : value_or_null). ('a : value_or_null) Bin_prot.Read.reader ->
('a : value_or_null) Core.ref Bin_prot.Read.vtag_readerval bin_reader_ref :
('a : value_or_null). ('a : value_or_null) Bin_prot.Type_class.reader ->
('a : value_or_null) Core.ref Bin_prot.Type_class.readerval bin_ref :
('a : value_or_null). ('a : value_or_null) Bin_prot.Type_class.t ->
('a : value_or_null) Core.ref Bin_prot.Type_class.tval compare_ref :
('a : value_or_null). (('a : value_or_null) ->
('a : value_or_null) ->
Base.Int.t) ->
('a : value_or_null) Core.ref ->
('a : value_or_null) Core.ref ->
Base.Int.tval compare_ref__local :
('a : value_or_null). (('a : value_or_null) @ local ->
('a : value_or_null) @ local ->
Base.Int.t) ->
('a : value_or_null) Core.ref @ local ->
('a : value_or_null) Core.ref @ local ->
Base.Int.tval equal_ref :
('a : value_or_null). (('a : value_or_null) ->
('a : value_or_null) ->
Base.Bool.t) ->
('a : value_or_null) Core.ref ->
('a : value_or_null) Core.ref ->
Base.Bool.tval equal_ref__local :
('a : value_or_null). (('a : value_or_null) @ local ->
('a : value_or_null) @ local ->
Base.Bool.t) ->
('a : value_or_null) Core.ref @ local ->
('a : value_or_null) Core.ref @ local ->
Base.Bool.tval sexp_of_ref :
('a : value_or_null). (('a : value_or_null) -> Sexplib0.Sexp.t) ->
('a : value_or_null) Core.ref ->
Sexplib0.Sexp.tval sexp_of_ref__stack :
('a : value_or_null). (('a : value_or_null) @ local ->
Sexplib0.Sexp.t @ local) ->
('a : value_or_null) Core.ref @ local ->
Sexplib0.Sexp.t @ localval ref_of_sexp :
('a : value_or_null). (Sexplib0.Sexp.t -> ('a : value_or_null)) ->
Sexplib0.Sexp.t ->
('a : value_or_null) Core.refval ref_sexp_grammar :
('a : value_or_null). ('a : value_or_null) Sexplib0.Sexp_grammar.t ->
('a : value_or_null) Core.ref Sexplib0.Sexp_grammar.t @@ portableval typerep_of_ref :
'a Typerep_lib.Std.Typerep.t ->
'a Core.ref Typerep_lib.Std.Typerep.t @@ portableval typename_of_ref :
'a Typerep_lib.Std.Typename.t ->
'a Core.ref Typerep_lib.Std.Typename.t @@ portableinclude sig ... end
val hash_fold_unit :
Ppx_hash_lib.Std.Hash.state ->
Base.Unit.t ->
Ppx_hash_lib.Std.Hash.stateinclude sig ... end
val bin_size_or_null__local :
'a. 'a Bin_prot.Size.sizer__local ->
'a Base.Or_null.t Bin_prot.Size.sizer__localval bin_write_or_null :
'a. 'a Bin_prot.Write.writer ->
'a Base.Or_null.t Bin_prot.Write.writerval bin_write_or_null__local :
'a. 'a Bin_prot.Write.writer__local ->
'a Base.Or_null.t Bin_prot.Write.writer__localval bin_writer_or_null :
'a. 'a Bin_prot.Type_class.writer ->
'a Base.Or_null.t Bin_prot.Type_class.writerval __bin_read_or_null__ :
'a. 'a Bin_prot.Read.reader ->
'a Base.Or_null.t Bin_prot.Read.vtag_readerval bin_reader_or_null :
'a. 'a Bin_prot.Type_class.reader ->
'a Base.Or_null.t Bin_prot.Type_class.readerval compare_or_null :
'a. ('a -> 'a -> Base.Int.t) ->
'a Base.Or_null.t ->
'a Base.Or_null.t ->
Base.Int.tval compare_or_null__local :
'a. ('a @ local -> 'a @ local -> Base.Int.t) ->
'a Base.Or_null.t @ local ->
'a Base.Or_null.t @ local ->
Base.Int.tval equal_or_null :
'a. ('a -> 'a -> Base.Bool.t) ->
'a Base.Or_null.t ->
'a Base.Or_null.t ->
Base.Bool.tval equal_or_null__local :
'a. ('a @ local -> 'a @ local -> Base.Bool.t) ->
'a Base.Or_null.t @ local ->
'a Base.Or_null.t @ local ->
Base.Bool.tval globalize_or_null :
'a. ('a @ local -> 'a) ->
'a Base.Or_null.t @ local ->
'a Base.Or_null.tval hash_fold_or_null :
'a. (Ppx_hash_lib.Std.Hash.state -> 'a -> Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
'a Base.Or_null.t ->
Ppx_hash_lib.Std.Hash.stateval sexp_of_or_null__stack :
('a @ local -> Sexplib0.Sexp.t @ local) ->
'a Base.Or_null.t @ local ->
Sexplib0.Sexp.t @ localval typerep_of_or_null :
'a Typerep_lib.Std.Typerep.t ->
'a Base.Or_null.t Typerep_lib.Std.Typerep.t @@ portableval typename_of_or_null :
'a Typerep_lib.Std.Typename.t ->
'a Base.Or_null.t Typerep_lib.Std.Typename.t @@ portableinclude module type of struct include Stable_witness.Export end
val stable_witness_iarray :
'a Stable_witness.t ->
'a Basement.Stdlib_iarray_labels.t Stable_witness.tval stable_witness_or_null :
'a Stable_witness.t ->
'a Basement.Or_null_shim.t Stable_witness.tTop-level values
val phys_equal :
('a : value_or_null). 'a @ contended ->
'a @ contended ->
Base.Bool.t @@ portableTo be used in implementing Core, but not by end users.