View Source Drops.Type.Validator protocol (drops v0.2.1)

Protocol for validating input using types

Summary

Types

t()

All the types that implement this protocol.

Types

@type t() :: term()

All the types that implement this protocol.

Functions

@spec validate(
  struct(),
  any()
) :: {:ok, any()} | {:error, {any(), keyword()}}