Backend.Nameinclude Container_key.S with type t := tval hash : t -> intval seeded_hash : int -> t -> intval sexp_of_t : t -> Sexplib0.Sexp.tval t_of_sexp : Sexplib0.Sexp.t -> tinclude Validated_string.S with type t := tval to_string : t -> stringGiven that t = string in the implementation, this function is just the identity.
of_string str returns Ok str if X.invariant str = true, and an error otherwise. This is meant to be used to validate untrusted entries.
val v : string -> tv str is a convenient wrapper to build a t or raise Invalid_argument. This is typically handy for applying on trusted literals.