partialfunctionIsValueCheck

given partialfunctionIsValueCheck[T, R]: Conversion[PartialFunction[T, R], ValueCheck[T]]

a partial function returning an object having an AsResult instance can check a value

Value members

Concrete methods

def apply(f: PartialFunction[T, R]): ValueCheck[T]

Inherited methods

@unspecialized
def andThen[A](g: ValueCheck[T] => A): PartialFunction[T, R] => A
Inherited from
Function1
@unspecialized
def compose[A](g: A => PartialFunction[T, R]): A => ValueCheck[T]
Inherited from
Function1
override def toString(): String
Definition Classes
Function1 -> Any
Inherited from
Function1

Extensions

Inherited extensions

extension (x: T)

x.convert converts a value x of type T to type U

x.convert converts a value x of type T to type U

Inherited from
Conversion