class :=[T, Q] extends AnyRef
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
- Source
- package.scala
- Alphabetic
- By Inheritance
- :=
- AnyRef
- Any
- by AnyExtensions
- by AnyExtensions
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new :=()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (:=[T, Q], B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- 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
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def →[B](y: B): (:=[T, Q], B)
Shadowed Implicit Value Members
-
def
in(set: Set[:=[T, Q]]): Boolean
Tests whether the given set contains this value as an element
Tests whether the given set contains this value as an element
- Implicit
- This member is added by an implicit conversion from :=[T, Q] to AnyExtensions[:=[T, Q]] performed by method AnyExtensions in org.cvogt.scala.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(:=: AnyExtensions[:=[T, Q]]).in(set)
- Definition Classes
- AnyExtensions
-
def
in(seq: Seq[:=[T, Q]]): Boolean
Tests whether the given sequence contains this value as an element
Tests whether the given sequence contains this value as an element
- Implicit
- This member is added by an implicit conversion from :=[T, Q] to AnyExtensions[:=[T, Q]] performed by method AnyExtensions in org.cvogt.scala.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(:=: AnyExtensions[:=[T, Q]]).in(seq)
- Definition Classes
- AnyExtensions
-
def
in(set: Set[:=[T, Q]]): Boolean
Tests whether the given set contains this value as an element
Tests whether the given set contains this value as an element
- Implicit
- This member is added by an implicit conversion from :=[T, Q] to AnyExtensions[:=[T, Q]] performed by method AnyExtensions in org.cvogt.scala.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(:=: AnyExtensions[:=[T, Q]]).in(set)
- Definition Classes
- AnyExtensions
-
def
in(seq: Seq[:=[T, Q]]): Boolean
Tests whether the given sequence contains this value as an element
Tests whether the given sequence contains this value as an element
- Implicit
- This member is added by an implicit conversion from :=[T, Q] to AnyExtensions[:=[T, Q]] performed by method AnyExtensions in org.cvogt.scala.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(:=: AnyExtensions[:=[T, Q]]).in(seq)
- Definition Classes
- AnyExtensions
-
def
notIn(set: Set[:=[T, Q]]): Boolean
Tests whether the given set does NOT contains this value as an element
Tests whether the given set does NOT contains this value as an element
- Implicit
- This member is added by an implicit conversion from :=[T, Q] to AnyExtensions[:=[T, Q]] performed by method AnyExtensions in org.cvogt.scala.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(:=: AnyExtensions[:=[T, Q]]).notIn(set)
- Definition Classes
- AnyExtensions
-
def
notIn(seq: Seq[:=[T, Q]]): Boolean
Tests whether the given sequence does NOT contains this value as an element
Tests whether the given sequence does NOT contains this value as an element
- Implicit
- This member is added by an implicit conversion from :=[T, Q] to AnyExtensions[:=[T, Q]] performed by method AnyExtensions in org.cvogt.scala.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(:=: AnyExtensions[:=[T, Q]]).notIn(seq)
- Definition Classes
- AnyExtensions
-
def
notIn(set: Set[:=[T, Q]]): Boolean
Tests whether the given set does NOT contains this value as an element
Tests whether the given set does NOT contains this value as an element
- Implicit
- This member is added by an implicit conversion from :=[T, Q] to AnyExtensions[:=[T, Q]] performed by method AnyExtensions in org.cvogt.scala.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(:=: AnyExtensions[:=[T, Q]]).notIn(set)
- Definition Classes
- AnyExtensions
-
def
notIn(seq: Seq[:=[T, Q]]): Boolean
Tests whether the given sequence does NOT contains this value as an element
Tests whether the given sequence does NOT contains this value as an element
- Implicit
- This member is added by an implicit conversion from :=[T, Q] to AnyExtensions[:=[T, Q]] performed by method AnyExtensions in org.cvogt.scala.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(:=: AnyExtensions[:=[T, Q]]).notIn(seq)
- Definition Classes
- AnyExtensions
-
val
value: :=[T, Q]
- Implicit
- This member is added by an implicit conversion from :=[T, Q] to AnyExtensions[:=[T, Q]] performed by method AnyExtensions in org.cvogt.scala.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(:=: AnyExtensions[:=[T, Q]]).value
- Definition Classes
- AnyExtensions
-
val
value: :=[T, Q]
- Implicit
- This member is added by an implicit conversion from :=[T, Q] to AnyExtensions[:=[T, Q]] performed by method AnyExtensions in org.cvogt.scala.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(:=: AnyExtensions[:=[T, Q]]).value
- Definition Classes
- AnyExtensions