View Source Noizu.ElixirCore.PartialObjectCheck.TypeConstraint (noizu_core v1.0.28)

The TypeConstraint struct represents a type constraint for a field or the entire partial object. It holds the actual type constraint, which can be a basic type (e.g., :integer, :map), a specific module, or a list of constraints. The TypeConstraint is used as part of the PartialObjectCheck and FieldConstraint to define the expected type of a field or object.

Link to this section Summary

Link to this section Types

@type t() :: %Noizu.ElixirCore.PartialObjectCheck.TypeConstraint{
  assert: :met | :unmet | :pending | :not_applicable,
  constraint:
    nil | {:basic, atom()} | {:module, atom()} | list() | (... -> any())
}

Link to this section Functions