Class/Object

com.thoughtworks.feature

The

Related Docs: object The | package feature

Permalink

final class The[Widen, Narrow <: Widen] extends AnyVal

A helper that summons dependent type class Widen.

Source
The.scala
Note

The can be used as an alternative to implicitly for dependent type classes.

val narrowed: Int <:< Int = The[Int <:< Any].value
See also

https://github.com/milessabin/shapeless/pull/695 for discussion about the motivation of The.

Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. The
  2. AnyVal
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from The[Widen, Narrow] to any2stringadd[The[Widen, Narrow]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (The[Widen, Narrow], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from The[Widen, Narrow] to ArrowAssoc[The[Widen, Narrow]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def ensuring(cond: (The[Widen, Narrow]) ⇒ Boolean, msg: ⇒ Any): The[Widen, Narrow]

    Permalink
    Implicit information
    This member is added by an implicit conversion from The[Widen, Narrow] to Ensuring[The[Widen, Narrow]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  8. def ensuring(cond: (The[Widen, Narrow]) ⇒ Boolean): The[Widen, Narrow]

    Permalink
    Implicit information
    This member is added by an implicit conversion from The[Widen, Narrow] to Ensuring[The[Widen, Narrow]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: Boolean, msg: ⇒ Any): The[Widen, Narrow]

    Permalink
    Implicit information
    This member is added by an implicit conversion from The[Widen, Narrow] to Ensuring[The[Widen, Narrow]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean): The[Widen, Narrow]

    Permalink
    Implicit information
    This member is added by an implicit conversion from The[Widen, Narrow] to Ensuring[The[Widen, Narrow]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from The[Widen, Narrow] to StringFormat[The[Widen, Narrow]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  12. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def toString(): String

    Permalink
    Definition Classes
    Any
  15. val value: Narrow

    Permalink
  16. def [B](y: B): (The[Widen, Narrow], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from The[Widen, Narrow] to ArrowAssoc[The[Widen, Narrow]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion any2stringadd from The[Widen, Narrow] to any2stringadd[The[Widen, Narrow]]

Inherited by implicit conversion StringFormat from The[Widen, Narrow] to StringFormat[The[Widen, Narrow]]

Inherited by implicit conversion Ensuring from The[Widen, Narrow] to Ensuring[The[Widen, Narrow]]

Inherited by implicit conversion ArrowAssoc from The[Widen, Narrow] to ArrowAssoc[The[Widen, Narrow]]

Ungrouped