Constraint

io.github.iltotore.iron.Constraint
See theConstraint companion object
trait Constraint[A, C]

A typeclass representing the implementation of a constraint of a certain type of value.

Attributes

A

the type of the value to test.

C

the constraint associated with this implementation.

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class UnionConstraint[A, C]
class DescribedAsConstraint[A, C, Impl, V]
class NotConstraint[A, C, Impl]
class XorConstraint[A, C1, C2, Impl1, Impl2]
class ExistsIterable[A, I, C, Impl]
class ExistsString[C, Impl]
class ForAllIterable[A, I, C, Impl]
class ForAllString[C, Impl]
class HeadIterable[A, I, C, Impl]
class HeadString[C, Impl]
class InitIterable[A, I, C, Impl]
class InitString[C, Impl]
class LastIterable[A, I, C, Impl]
class LastString[C, Impl]
class LengthIterable[I, C, Impl]
class LengthString[C, Impl]
class TailIterable[A, I, C, Impl]
class TailString[C, Impl]

Members list

Concise view

Value members

Abstract methods

inline def message: String
inline def test(value: A): Boolean