jon.recoil.org

Module Types.Variance

type t
type f =
  1. | May_pos
  2. | May_neg
  3. | May_weak
  4. | Inj
  5. | Pos
  6. | Neg
  7. | Inv
val null : Types.Variance.t
val full : Types.Variance.t
val covariant : Types.Variance.t
val unknown : Types.Variance.t
val subset : Types.Variance.t -> Types.Variance.t -> bool
val mem : Types.Variance.f -> Types.Variance.t -> bool
val get_upper : Types.Variance.t -> bool * bool
val get_lower : Types.Variance.t -> bool * bool * bool
val unknown_signature : injective:bool -> arity:int -> Types.Variance.t list

The most pessimistic variance for a completely unknown type.