croma v0.4.1 Croma.NonNegInteger

Module that represents the Elixir’s built-in non_neg_integer type. Intended to be used with other parts of croma to express non_neg_integer variables.

Summary

Functions

Simply checks the argument’s type using is_integer(var!(x)) and var!(x) >= 0 and returns a Croma.Result

Types

t :: non_neg_integer

Functions

validate(value)

Specs

Simply checks the argument’s type using is_integer(var!(x)) and var!(x) >= 0 and returns a Croma.Result.