StringEnrichedWithCodecContextSupport

final class StringEnrichedWithCodecContextSupport(val context: String) extends AnyVal
Provides the | method on String, which is reverse syntax for codec withContext ctx.
Usage:
{{{
val codec = "id" | uint8
}}}
class AnyVal
trait Matchable
class Any

Value members

Methods

def |[A](codec: Codec[A]): Codec[A]
Pushes context into the specified codec.

Fields

val context: String