croma v0.6.5 Croma.PosInteger View Source

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

Link to this section Summary

Functions

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

Link to this section Types

Link to this type t() View Source
t() :: pos_integer

Link to this section Functions

Link to this function validate(value) View Source
validate(term) :: Croma.Result.t(t)

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