Module Names.Id
Representation and operations on identifiers.
val hash : t -> int
Hash over identifiers.
val of_bytes : bytes -> t
val of_string : string -> t
Converts a string into an identifier.
- raises UserError
if the string is invalid as an identifier.
val of_string_soft : string -> t
Same as
of_string
except that any string made of supported UTF-8 characters is accepted.- raises UserError
if the string is invalid as an UTF-8 string.
val to_string : t -> string
Converts a identifier into an string.
module Set : Util.Set.S with type S.elt = t
Finite sets of identifiers.
module Pred : Predicate.S with type elt = t
Predicates over identifiers.
module List : Util.List.MonoS with type elt = t
Operations over lists of identifiers.