Validator

dev.cheleb.scalamigen.Validator
See theValidator companion object
trait Validator[A]

A trait representing a validator for a type A.

A validator is a function that takes a string and returns either an error message or a value of type A.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def validate(str: String): Either[String, A]