Any.Def

object Def
class java.lang.Object
trait scala.Matchable
class Any

Member

trait Contains[-CONTAINER, A]

A given Any.Def.Contains instance for a specific type determines if universal method "in" can be applied.

 val range = 1 <> 10

 if(5 in range) "is in".tp

 if("CD" in "ABCDEF") ()
 // same as
 if("ABCDEF".contains("CD")) ()

Any.Def.Contains is defined for most known types and can be defined for new ones.

Source
Contains.scala
trait Contains[-CONTAINER, A]

A given Any.Def.Contains instance for a specific type determines if universal method "in" can be applied.

 val range = 1 <> 10

 if(5 in range) "is in".tp

 if("CD" in "ABCDEF") ()
 // same as
 if("ABCDEF".contains("CD")) ()

Any.Def.Contains is defined for most known types and can be defined for new ones.

Source
Contains.scala
trait Doc[-A] extends Any.Def.Tag[A]

A given Any.Def.Doc instance for a specific type determines how instance documentation is created.

Usually there is no need to create Any.Def.Doc, because it is implicitly created for standard opaque types. Reference types can mix Able.Doc instead.

Defining Any.Def.Doc is usefull for third-party existing types, one has no control over.

Source
Doc.scala
trait Empty[-A]

A given Any.Def.Empty instance for a specific type specifies that instance can be checked for emptiness.

Source
Empty.scala
trait Empty[-A]

A given Any.Def.Empty instance for a specific type specifies that instance can be checked for emptiness.

Source
Empty.scala
trait Tag[-A]

A given Any.Def.Tag instance for a specific type determines how this instance is converted to a String with universal ".tag" method.

Usually there is no need to create Any.Def.Tag, because it is implicitly created for standard opaque types. Reference types can mix Able.Tag instead.

Defining Any.Def.Tag is usefull for third-party existing types, one has no control over.

Source
Tag.scala
trait Tag[-A]

A given Any.Def.Tag instance for a specific type determines how this instance is converted to a String with universal ".tag" method.

Usually there is no need to create Any.Def.Tag, because it is implicitly created for standard opaque types. Reference types can mix Able.Tag instead.

Defining Any.Def.Tag is usefull for third-party existing types, one has no control over.

Source
Tag.scala
trait ToStream[-A, B]
trait ToStream[-A, B]
abstract class TypeName[A]
abstract class TypeName[A]
trait Void[A]
trait Void[A]