EqualsTo

open class EqualsTo[A](a: A) extends FromPredicate[A]

checks if a value equals to the specified reference

class FromPredicate[A]
trait Validation[A]
class Object
trait Matchable
class Any

Type members

Inherited classlikes

final case class Error(raw: Raw)
Inherited from
Validation

Inherited types

override opaque type Valid
Inherited from
FromPredicate0

Value members

Inherited methods

def and[Valid2 <: A](that: Aux[A, Valid2]): Aux[A, Valid & Valid2]
Inherited from
FromPredicate
protected def formatErrorMessage(raw: A): String
Inherited from
FromPredicate0
Inherited from
FromPredicate
def or[Valid2 <: A](that: Aux[A, Valid2]): Aux[A, Valid | Valid2]
Inherited from
FromPredicate
final def unapply(raw: A): Option[Valid]
Inherited from
Validation
final def validate(raw: A): Error | Valid
Inherited from
Validation
final def validateEither(raw: A): Either[Error, Valid]
Inherited from
Validation
final def validateWith[A](raw: A, handleSuccess: Valid => A, handleError: Error => A): A
Inherited from
FromPredicate0

Inherited fields

val predicate: A => Boolean
Inherited from
FromPredicate0
val predicateName: String
Inherited from
FromPredicate0

Givens

Inherited givens

given given_FromString_Valid(using val Raw: FromString[Raw]): FromString[Valid]
Inherited from
Validation
Inherited from
Validation