Zodish.Type.Float (zodish v0.2.4)

View Source

This module describes a Zodish float type.

Summary

Types

t()

@type t() :: %Zodish.Type.Float{
  coerce: boolean(),
  gt: Zodish.Option.t(float()) | nil,
  gte: Zodish.Option.t(float()) | nil,
  lt: Zodish.Option.t(float()) | nil,
  lte: Zodish.Option.t(float()) | nil
}

Functions

coerce(type, value \\ true)

Either enables or disables coercion for the given Float type.

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

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

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

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

new(opts \\ [])

Creates a new Float type.