Definition

org.scalatest.enablers.Definition
See theDefinition companion trait
object Definition

Companion object for Definition that provides implicit implementations for the following types:

  • scala.Option

  • arbitary object with a isDefined() method that returns Boolean

  • arbitary object with a parameterless isDefined method that returns Boolean

Attributes

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

Members list

Implicits

Implicits

implicit def definitionOfAnyRefWithIsDefinedMethod[T <: AnyRef { def isDefined(): Boolean; }]: Definition[T]

Provides Definition implementation for any arbitrary object with a isDefined() method that returns Boolean

Provides Definition implementation for any arbitrary object with a isDefined() method that returns Boolean

Type parameters

T

any type that has a isDefined() method that returns Boolean

Attributes

Returns

Definition[T] that supports T in be defined syntax

implicit def definitionOfAnyRefWithParameterlessIsDefinedMethod[T <: AnyRef { def isDefined: Boolean; }]: Definition[T]

Provides Definition implementation for any arbitrary object with a isDefined method that returns Boolean

Provides Definition implementation for any arbitrary object with a isDefined method that returns Boolean

Type parameters

T

any type that has a parameterless isDefined method that returns Boolean

Attributes

Returns

Definition[T] that supports T in be defined syntax

implicit def definitionOfOption[E, OPT <: (Option)]: Definition[OPT[E]]

Provides Definition implementation for scala.Option

Provides Definition implementation for scala.Option

Type parameters

E

the type of the element in the Option

OPT

any subtype of Option

Attributes

Returns

Definition[OPT[E]] that supports Option in be defined syntax