Zodish.Type.List (zodish v0.2.4)

View Source

This module describes a Zodish list type.

Summary

Types

t()

@type t() :: t(Zodish.Type.t())

t(inner_type)

@type t(inner_type) :: %Zodish.Type.List{
  inner_type: inner_type,
  length: Zodish.Option.t(non_neg_integer()) | nil,
  max: Zodish.Option.t(non_neg_integer()) | nil,
  min: Zodish.Option.t(non_neg_integer()) | nil
}

Functions

length(type, value, opts \\ [])

max(type, value, opts \\ [])

min(type, value, opts \\ [])

new(inner_type, opts \\ [])

Creates a new List type.