Matcha.Spec (Matcha v0.1.1) View Source

About specs.

Link to this section Summary

Link to this section Types

Specs

t() :: %Matcha.Spec{
  compiled: Matcha.Source.compiled() | nil,
  context: Matcha.Context.t(),
  node: Node.t() | nil,
  source: Matcha.Source.spec(),
  type: Matcha.Source.type()
}

Link to this section Functions

Link to this function

filter_map(spec, enumerable)

View Source

Specs

filter_map(t(), Enumerable.t()) :: Enumerable.t()

Specs

Specs

Link to this function

stream(spec, enumerable)

View Source

Specs

stream(t(), Enumerable.t()) :: Enumerable.t()

Specs

validate(t()) :: {:ok, t()} | {:error, Matcha.Error.problems()}

Specs

validate!(t()) :: t() | no_return()