Zodish.Type.Literal (zodish v0.2.4)

View Source

Describes a type that only accepts a specific value.

Summary

Functions

Creates a new Literal type.

Types

t()

@type t() :: t(any())

t(inner_type)

@type t(inner_type) :: %Zodish.Type.Literal{value: inner_type}

Functions

new(value)

Creates a new Literal type.