Ecto.Type.match?/2

Parsed documentation:
View on GitHub
Checks if a given type matches with a primitive type.

    iex> match?(:whatever, :any)
    true
    iex> match?(:any, :whatever)
    true
    iex> match?(:string, :string)
    true

    iex> match?({:array, :string}, {:array, :any})
    true

    iex> match?(Ecto.DateTime, :datetime)
    true
    iex> match?(Ecto.DateTime, :string)
    false
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.