Matcher

object Matcher

Companion object for trait Matcher that provides a factory method that creates a Matcher[T] from a passed function of type (T => MatchResult).

Companion:
class
class Object
trait Matchable
class Any
Matcher.type

Value members

Concrete methods

def apply[T](fun: T => MatchResult)(implicit ev: ClassTag[T]): Matcher[T]

Factory method that creates a Matcher[T] from a passed function of type (T => MatchResult).

Factory method that creates a Matcher[T] from a passed function of type (T => MatchResult).