Ash.Type.apply_constraints

You're seeing just the function apply_constraints, go back to Ash.Type module for more information.
Link to this function

apply_constraints(type, term, constraints)

View Source

Specs

apply_constraints(t(), term(), constraints()) ::
  {:ok, term()} | {:error, String.t()}

Confirms if a casted value matches the provided constraints.