final case class Fallback[+T](value: T) extends AnyVal with Product with Serializable

Wrap your implicit instance of AsReal, AsRaw, AsRawReal or RPC metadata (with companion that extends RpcMetadataCompanion into Fallback in order to lower its implicit priority. Useful when some implicit must be imported but we don't want it to get higher priority that imports normally have over implicit scope (e.g. implicits from companion objects).

NOTE: Fallback does not work for *all* typeclasses, only RPC-related ones (AsReal, AsRaw, etc). You can make it work with your own typeclass, but you must define appropriate forwarder in its companion, e.g.

trait FallbackAwareTC[T] { ... }
object FallbackAwareTC {
  implicit def fromFallback[T](implicit f: Fallback[FallbackAwareTC[T]]): FallbackAwareTC[T] = f.value
Linear Supertypes
  1. Alphabetic
  2. By Inheritance
  1. Fallback
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyVal
  7. Any
  1. Hide All
  2. Show All
  1. Public
  2. All

Instance Constructors

  1. new Fallback(value: T)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
  2. final def ##(): Int
    Definition Classes
  3. final def ==(arg0: Any): Boolean
    Definition Classes
  4. final def asInstanceOf[T0]: T0
    Definition Classes
  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean
    Definition Classes
  7. val value: T

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyVal

Inherited from Any