Vapor Documentation Beta

Enumeration Range​Result

public enum RangeResult<T> where T: Comparable

Type used by Range and Count validators to indicate where a value fell within a range.

%3 RangeResult RangeResult Equatable Equatable RangeResult->Equatable

Conforms To

Equatable

Enumeration Cases

between

case between(min: T, max: T)

The value was between min and max.

greater​Than​OrEqual​ToMin

case greaterThanOrEqualToMin(: T)

The value was greater than or equal to min.

greater​Than​Max

case greaterThanMax(: T)

The value was greater than max.

less​Than​OrEqual​ToMax

case lessThanOrEqualToMax(: T)

The value was less than or equal to max.

less​Than​Min

case lessThanMin(: T)

The value was less than min.