io.github.iltotore.iron.constraint.any.DescribedAs
See theDescribedAs companion object
A constraint decorator with a custom description.
Type parameters
- C
-
the decorated constraint.
- V
-
the description to attach.
Attributes
- Example
-
//Literal type PosInt = DescribedAs[Greater[0], "Should be positive"] //Using type-level String concatenation (example taken from `numeric`) import io.github.iltotore.iron.ops.* type GreaterEqual[V] = (Greater[V] || StrictEqual[V]) DescribedAs ("Should be greater than or equal to " + V)
- Companion
- object
- Source
- any.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
In this article