View Source Vx.Number (Vx v0.1.0)

The Integer type provides validators for integers.

Summary

Types

t()

The number type.

Types

@type numeric() :: t() | Vx.Float.t() | Vx.Integer.t()
@opaque t()

The number type.

Functions

Link to this function

between(type \\ t(), first, last)

View Source
@spec between(type, number(), number()) :: type when type: numeric()
@spec gt(type, number()) :: type when type: numeric()
Link to this function

gteq(type \\ t(), value)

View Source
@spec gteq(type, number()) :: type when type: numeric()
@spec integer(type) :: type when type: numeric()
@spec lt(type, number()) :: type when type: numeric()
Link to this function

lteq(type \\ t(), value)

View Source
@spec lteq(type, number()) :: type when type: numeric()
Link to this function

range(type \\ t(), range)

View Source
@spec range(type, Range.t()) :: type when type: numeric()
@spec t() :: t()