implicit final class SingleValueTransformers[T] extends AnyVal
"Standard" transformers for Directive1.
Easier to use than tmap
, tflatMap
, etc. defined on Directive itself,
because they provide transparent conversion from Tuple1.
- Source
- Directive.scala
Linear Supertypes
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- SingleValueTransformers
- AnyVal
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new SingleValueTransformers(underlying: Directive1[T])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from SingleValueTransformers[T] toany2stringadd[SingleValueTransformers[T]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (SingleValueTransformers[T], B)
- Implicit
- This member is added by an implicit conversion from SingleValueTransformers[T] toArrowAssoc[SingleValueTransformers[T]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def collect[R](pf: PartialFunction[T, R], rejections: Rejection*)(implicit tupler: Tupler[R]): Directive[Out]
- def ensuring(cond: (SingleValueTransformers[T]) => Boolean, msg: => Any): SingleValueTransformers[T]
- Implicit
- This member is added by an implicit conversion from SingleValueTransformers[T] toEnsuring[SingleValueTransformers[T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (SingleValueTransformers[T]) => Boolean): SingleValueTransformers[T]
- Implicit
- This member is added by an implicit conversion from SingleValueTransformers[T] toEnsuring[SingleValueTransformers[T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): SingleValueTransformers[T]
- Implicit
- This member is added by an implicit conversion from SingleValueTransformers[T] toEnsuring[SingleValueTransformers[T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): SingleValueTransformers[T]
- Implicit
- This member is added by an implicit conversion from SingleValueTransformers[T] toEnsuring[SingleValueTransformers[T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def filter(predicate: (T) => Boolean, rejections: Rejection*): Directive1[T]
- def flatMap[R](f: (T) => Directive[R])(implicit arg0: Tuple[R]): Directive[R]
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[R](f: (T) => R)(implicit tupler: Tupler[R]): Directive[Out]
- def require(predicate: (T) => Boolean, rejections: Rejection*): Directive0
- def toString(): String
- Definition Classes
- Any
- val underlying: Directive1[T]
Deprecated Value Members
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from SingleValueTransformers[T] toStringFormat[SingleValueTransformers[T]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (SingleValueTransformers[T], B)
- Implicit
- This member is added by an implicit conversion from SingleValueTransformers[T] toArrowAssoc[SingleValueTransformers[T]] 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.