implicit final class StringEnrichedWithCodecContextSupport extends AnyVal
Provides the |
method on String
, which is reverse syntax for codec withContext ctx
.
Usage:
val codec = "id" | uint8
- Source
- package.scala
- Alphabetic
- By Inheritance
- StringEnrichedWithCodecContextSupport
- AnyVal
- Any
- by ValueEnrichedWithTuplingSupport
- by ValueEnrichedWithTuplingSupport
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new StringEnrichedWithCodecContextSupport(context: String)
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 StringEnrichedWithCodecContextSupport toany2stringadd[StringEnrichedWithCodecContextSupport] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (StringEnrichedWithCodecContextSupport, B)
- Implicit
- This member is added by an implicit conversion from StringEnrichedWithCodecContextSupport toArrowAssoc[StringEnrichedWithCodecContextSupport] 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
- val context: String
- def ensuring(cond: (StringEnrichedWithCodecContextSupport) => Boolean, msg: => Any): StringEnrichedWithCodecContextSupport
- Implicit
- This member is added by an implicit conversion from StringEnrichedWithCodecContextSupport toEnsuring[StringEnrichedWithCodecContextSupport] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (StringEnrichedWithCodecContextSupport) => Boolean): StringEnrichedWithCodecContextSupport
- Implicit
- This member is added by an implicit conversion from StringEnrichedWithCodecContextSupport toEnsuring[StringEnrichedWithCodecContextSupport] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): StringEnrichedWithCodecContextSupport
- Implicit
- This member is added by an implicit conversion from StringEnrichedWithCodecContextSupport toEnsuring[StringEnrichedWithCodecContextSupport] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): StringEnrichedWithCodecContextSupport
- Implicit
- This member is added by an implicit conversion from StringEnrichedWithCodecContextSupport toEnsuring[StringEnrichedWithCodecContextSupport] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from StringEnrichedWithCodecContextSupport toStringFormat[StringEnrichedWithCodecContextSupport] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def toString(): String
- Definition Classes
- Any
- def |[A](codec: Codec[A]): Codec[A]
Pushes context into the specified codec.
Shadowed Implicit Value Members
- val a: StringEnrichedWithCodecContextSupport
- Implicit
- This member is added by an implicit conversion from StringEnrichedWithCodecContextSupport toValueEnrichedWithTuplingSupport[StringEnrichedWithCodecContextSupport] performed by method ValueEnrichedWithTuplingSupport in scodec.codecs.
- 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:(stringEnrichedWithCodecContextSupport: ValueEnrichedWithTuplingSupport[StringEnrichedWithCodecContextSupport]).a
- Definition Classes
- ValueEnrichedWithTuplingSupport
- val a: StringEnrichedWithCodecContextSupport
- Implicit
- This member is added by an implicit conversion from StringEnrichedWithCodecContextSupport toValueEnrichedWithTuplingSupport[StringEnrichedWithCodecContextSupport] performed by method ValueEnrichedWithTuplingSupport in scodec.codecs.
- 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:(stringEnrichedWithCodecContextSupport: ValueEnrichedWithTuplingSupport[StringEnrichedWithCodecContextSupport]).a
- Definition Classes
- ValueEnrichedWithTuplingSupport
- def ~[B](b: B): (StringEnrichedWithCodecContextSupport, B)
- Implicit
- This member is added by an implicit conversion from StringEnrichedWithCodecContextSupport toValueEnrichedWithTuplingSupport[StringEnrichedWithCodecContextSupport] performed by method ValueEnrichedWithTuplingSupport in scodec.codecs.
- 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:(stringEnrichedWithCodecContextSupport: ValueEnrichedWithTuplingSupport[StringEnrichedWithCodecContextSupport]).~(b)
- Definition Classes
- ValueEnrichedWithTuplingSupport
- def ~[B](b: B): (StringEnrichedWithCodecContextSupport, B)
- Implicit
- This member is added by an implicit conversion from StringEnrichedWithCodecContextSupport toValueEnrichedWithTuplingSupport[StringEnrichedWithCodecContextSupport] performed by method ValueEnrichedWithTuplingSupport in scodec.codecs.
- 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:(stringEnrichedWithCodecContextSupport: ValueEnrichedWithTuplingSupport[StringEnrichedWithCodecContextSupport]).~(b)
- Definition Classes
- ValueEnrichedWithTuplingSupport
Deprecated Value Members
- def →[B](y: B): (StringEnrichedWithCodecContextSupport, B)
- Implicit
- This member is added by an implicit conversion from StringEnrichedWithCodecContextSupport toArrowAssoc[StringEnrichedWithCodecContextSupport] 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.