class
:=[T, Q] extends AnyRef
Instance Constructors
-
new
:=()
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
def
->[B](y: B): (:=[T, Q], B)
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
ensuring(cond: (:=[T, Q]) ⇒ Boolean, msg: ⇒ Any): :=[T, Q]
-
def
ensuring(cond: (:=[T, Q]) ⇒ Boolean): :=[T, Q]
-
def
ensuring(cond: Boolean, msg: ⇒ Any): :=[T, Q]
-
def
ensuring(cond: Boolean): :=[T, Q]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
def
formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
→[B](y: B): (:=[T, Q], B)
Inherited from AnyRef
Inherited from Any
Inherited by implicit conversion any2stringadd from
:=[T, Q] to any2stringadd[:=[T, Q]]
Inherited by implicit conversion StringFormat from
:=[T, Q] to StringFormat[:=[T, Q]]
Inherited by implicit conversion Ensuring from
:=[T, Q] to Ensuring[:=[T, Q]]
Inherited by implicit conversion ArrowAssoc from
:=[T, Q] to ArrowAssoc[:=[T, Q]]
Allows to provide default value for type parameter. NOTE: Be careful when you use this. Result type inference order reasoning can be very tricky.
scala> def foo[T](implicit default: T := Int, ct: ClassTag[T]) = ct.toString scala> foo Int scala> foo[String] String
For foo: useDefault[Int] wins over useProvided[Nothing,Int] For foo[String]: useProvided[String,Int] applies, useDefault does not