package email_message
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=3aa5c85da8530c277cf9e72e18861b235b3b872f08c87f118c04478433320ebb
doc/email_message.kernel/Email_message_kernel/index.html
Module Email_message_kernel
Source
include Ppx_compare_lib.Comparable.S with type t := t
include Ppx_hash_lib.Hashable.S with type t := t
String-builder-like module. Small-to-no memory overhead when unparsed.
Convert from string, in compliance with the RFC 2822 standard (standard email format, e.g. .eml but not mbox)
Convert to string, in compliance with the RFC 2822 standard (standard email format, e.g. .eml but not mbox)
include Core.Comparable.S_plain with type t := t
include Base.Comparable.S with type t := t
include Base.Comparisons.S with type t := t
ascending
is identical to compare
. descending x y = ascending y x
. These are intended to be mnemonic when used like List.sort ~compare:ascending
and List.sort ~cmp:descending
, since they cause the list to be sorted in ascending or descending order, respectively.
clamp_exn t ~min ~max
returns t'
, the closest value to t
such that between t' ~low:min ~high:max
is true.
Raises if not (min <= max)
.
The cost depends on the encoding of the content and the main media type.