Any.Def
Member
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
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
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
A given Any.Def.Empty instance for a specific type specifies that instance can be checked for emptiness.
- Source
- Empty.scala
A given Any.Def.Empty instance for a specific type specifies that instance can be checked for emptiness.
- Source
- Empty.scala
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
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