Module Type_immediacy
Immediacy status of a type
module Violation : sig ... endval coerce :
Type_immediacy.t ->
as_:Type_immediacy.t ->
(unit, Type_immediacy.Violation.t) Stdlib.resultcoerce t ~as_ returns Ok () iff t can be seen as type immediacy as_. For instance, Always can be seen as Always_on_64bits but the opposite is not true. Return Error _ if the coercion is not possible.
val of_attributes : Parsetree.attributes -> Type_immediacy.tReturn the immediateness of a type as indicated by the user via attributes