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 definedmatcher syntax.A
Definition[T]provides access to the "definition nature" of typeSin such a way thatbe definedmatcher syntax can be used with typeT. ATcan 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 definedmatcher syntax on your own typeUby defining aDefinition[U]for the type and making it available implicitly.ScalaTest provides an implicit
Definitioninstance forscala.Option, arbitary object withisDefined()orisDefinedin theDefinitioncompanion object.