sealed trait Conversion extends AnyRef
A conversion specifier matched by m
in the string part at pos
,
with argc
arguments to interpolate.
- Source
- FormatInterpolator.scala
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- Conversion
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def accepts(arg: nsc.Global.Tree): Option[nsc.Global.Type]
- abstract def argc: Int
- abstract def m: Match
- abstract def pos: nsc.Global.Position
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from Conversion toany2stringadd[Conversion] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (Conversion, B)
- Implicit
- This member is added by an implicit conversion from Conversion toArrowAssoc[Conversion] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val allFlags: String
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def badFlag(f: Char, msg: String): Unit
- def cc: Char
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def ensuring(cond: (Conversion) => Boolean, msg: => Any): Conversion
- Implicit
- This member is added by an implicit conversion from Conversion toEnsuring[Conversion] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (Conversion) => Boolean): Conversion
- Implicit
- This member is added by an implicit conversion from Conversion toEnsuring[Conversion] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): Conversion
- Implicit
- This member is added by an implicit conversion from Conversion toEnsuring[Conversion] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): Conversion
- Implicit
- This member is added by an implicit conversion from Conversion toEnsuring[Conversion] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def errorAt(g: SpecifierGroups.Value, msg: String): Unit
- def errorAtOffset(g: SpecifierGroups.Value, i: Int, msg: String): Unit
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val flags: Option[String]
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from Conversion toStringFormat[Conversion] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def goodFlags: Boolean
- def goodIndex: Boolean
- def groupPos(g: SpecifierGroups.Value): Position
- def groupPosAt(g: SpecifierGroups.Value, i: Int): Position
- def hasAnyFlag(fs: String): Boolean
- def hasFlag(f: Char): Boolean
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val index: Option[Int]
- def indexed: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isLeading: Boolean
- def isLiteral: Boolean
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noFlags: Boolean
- def noPrecision: Boolean
- def noWidth: Boolean
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def okFlags: String
- Attributes
- protected
- def only_-(msg: String): Boolean
- val op: String
- def pickAcceptable(arg: nsc.Global.Tree, variants: nsc.Global.Type*): Option[nsc.Global.Type]
Pick the type of an arg to format from among the variants supported by a conversion.
Pick the type of an arg to format from among the variants supported by a conversion. This is the type of the temporary, so failure results in an erroneous assignment to the first variant. A more complete message would be nice.
- val precision: Option[Int]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def verify: Boolean
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- val width: Option[Int]
Deprecated Value Members
- def →[B](y: B): (Conversion, B)
- Implicit
- This member is added by an implicit conversion from Conversion toArrowAssoc[Conversion] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.
The Scala compiler and reflection APIs.