caffeine_lang/common/accepted_types

Types

AcceptedTypes is a union of all the types that can be used as a “filter” over the set of all possible values. This allows us to type params and thus provide annotations that the compiler can leverage to be a more useful guide towards the pit of success.

pub type AcceptedTypes {
  PrimitiveType(primitive_types.PrimitiveTypes)
  CollectionType(collection_types.CollectionTypes(AcceptedTypes))
  ModifierType(modifier_types.ModifierTypes(AcceptedTypes))
  RefinementType(refinement_types.RefinementTypes(AcceptedTypes))
}

Constructors

Search Document