Matchers

com.phasmidsoftware.matchers.Matchers
See theMatchers companion trait
object Matchers

The Matchers object provides utilities and implicit conversions for working with matching operations and combining different types into structured forms. It contains an implicit class for the tilde (~) operator as well as a default instance of Matchers.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Matchers.type

Members list

Type members

Classlikes

implicit class TildeOps[R, S](r: R)

Provides an implicit class to enable the tilde (~) operator for combining two values of types R and S into a single instance of the case class ~.

Provides an implicit class to enable the tilde (~) operator for combining two values of types R and S into a single instance of the case class ~.

Type parameters

R

the type of the first value

S

the type of the second value

Value parameters

r

the value of type R to be combined

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete fields

Provides a default instance of the Matchers class.

Provides a default instance of the Matchers class.

This instance is pre-configured with a MatchLogger obtained implicitly. It is recommended for applications to create their own custom instances of Matchers tailored to their specific needs rather than using this default instance.

Attributes

Implicits

Implicits

final implicit def TildeOps[R, S](r: R): TildeOps[R, S]

Provides an implicit class to enable the tilde (~) operator for combining two values of types R and S into a single instance of the case class ~.

Provides an implicit class to enable the tilde (~) operator for combining two values of types R and S into a single instance of the case class ~.

Type parameters

R

the type of the first value

S

the type of the second value

Value parameters

r

the value of type R to be combined

Attributes