Determines whether the passed is defined, i.e., the passed in scala.Option
is defined.
Determines whether the passed is defined, i.e., the passed in scala.Option
is defined.
the thing to check for definition
true
if passed thing is defined, false
otherwise
Supertrait for typeclasses that enable the
be defined
matcher syntax.A
Definition[T]
provides access to the "definition nature" of typeS
in such a way thatbe defined
matcher syntax can be used with typeT
. AT
can be any type for which the concept of being defined makes sense, such asscala.Option
. ScalaTest provides implicit implementation forscala.Option
. You can enable thebe defined
matcher syntax on your own typeU
by defining aDefinition[U]
for the type and making it available implicitly.ScalaTest provides an implicit
Definition
instance forscala.Option
, arbitary object withisDefined()
orisDefined
in theDefinition
companion object.