Class

scodec.interop.spire

SpireCodecEnrichment

Related Doc: package spire

Permalink

implicit final class SpireCodecEnrichment[A] extends AnyVal

Provides enrichments for Codec[A] related to Spire.

Source
package.scala
Linear Supertypes
AnyVal, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SpireCodecEnrichment
  2. AnyVal
  3. Any
Implicitly
  1. by TransformSyntax
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SpireCodecEnrichment(codec: Codec[A])

    Permalink

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 SpireCodecEnrichment[A] to any2stringadd[SpireCodecEnrichment[A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (SpireCodecEnrichment[A], B)

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

    Permalink
    Definition Classes
    Any
  6. def as[B](implicit as: Transformer[A, B]): SpireCodecEnrichment[B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SpireCodecEnrichment[A] to TransformSyntax[SpireCodecEnrichment, A] performed by method TransformSyntax in scodec. This conversion will take place only if an implicit value of type Transform[SpireCodecEnrichment] is in scope.
    Definition Classes
    TransformSyntax
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def bounded(interval: Interval[A]): Codec[A]

    Permalink

    Returns a codec that validates encoded and decoded values are contained by the specified interval.

    Returns a codec that validates encoded and decoded values are contained by the specified interval. Values outside the interval result in errors being returned from encode/decode.

    interval

    interval for which to bound values

  9. val codec: Codec[A]

    Permalink
  10. def ensuring(cond: (SpireCodecEnrichment[A]) ⇒ Boolean, msg: ⇒ Any): SpireCodecEnrichment[A]

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

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

    Permalink
    Implicit information
    This member is added by an implicit conversion from SpireCodecEnrichment[A] to Ensuring[SpireCodecEnrichment[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): SpireCodecEnrichment[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SpireCodecEnrichment[A] to Ensuring[SpireCodecEnrichment[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def exmap[B](f: (A) ⇒ Attempt[B], g: (B) ⇒ Attempt[A]): SpireCodecEnrichment[B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SpireCodecEnrichment[A] to TransformSyntax[SpireCodecEnrichment, A] performed by method TransformSyntax in scodec. This conversion will take place only if an implicit value of type Transform[SpireCodecEnrichment] is in scope.
    Definition Classes
    TransformSyntax
  15. def exmapc[B](f: (A) ⇒ Attempt[B])(g: (B) ⇒ Attempt[A]): SpireCodecEnrichment[B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SpireCodecEnrichment[A] to TransformSyntax[SpireCodecEnrichment, A] performed by method TransformSyntax in scodec. This conversion will take place only if an implicit value of type Transform[SpireCodecEnrichment] is in scope.
    Definition Classes
    TransformSyntax
  16. def formatted(fmtstr: String): String

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

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

    Permalink
    Definition Classes
    Any
  19. def narrow[B](f: (A) ⇒ Attempt[B], g: (B) ⇒ A): SpireCodecEnrichment[B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SpireCodecEnrichment[A] to TransformSyntax[SpireCodecEnrichment, A] performed by method TransformSyntax in scodec. This conversion will take place only if an implicit value of type Transform[SpireCodecEnrichment] is in scope.
    Definition Classes
    TransformSyntax
  20. def narrowc[B](f: (A) ⇒ Attempt[B])(g: (B) ⇒ A): SpireCodecEnrichment[B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SpireCodecEnrichment[A] to TransformSyntax[SpireCodecEnrichment, A] performed by method TransformSyntax in scodec. This conversion will take place only if an implicit value of type Transform[SpireCodecEnrichment] is in scope.
    Definition Classes
    TransformSyntax
  21. val self: SpireCodecEnrichment[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SpireCodecEnrichment[A] to TransformSyntax[SpireCodecEnrichment, A] performed by method TransformSyntax in scodec. This conversion will take place only if an implicit value of type Transform[SpireCodecEnrichment] is in scope.
    Definition Classes
    TransformSyntax
  22. def toString(): String

    Permalink
    Definition Classes
    Any
  23. def toUByte(implicit ev: =:=[A, Byte]): Codec[UByte]

    Permalink
  24. def toUInt(implicit ev: =:=[A, Int]): Codec[UInt]

    Permalink
  25. def toULong(implicit ev: =:=[A, Long]): Codec[ULong]

    Permalink
  26. def toUShort(implicit ev: =:=[A, Short]): Codec[UShort]

    Permalink
  27. def widen[B](f: (A) ⇒ B, g: (B) ⇒ Attempt[A]): SpireCodecEnrichment[B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SpireCodecEnrichment[A] to TransformSyntax[SpireCodecEnrichment, A] performed by method TransformSyntax in scodec. This conversion will take place only if an implicit value of type Transform[SpireCodecEnrichment] is in scope.
    Definition Classes
    TransformSyntax
  28. def widenOpt[B](f: (A) ⇒ B, g: (B) ⇒ Option[A]): SpireCodecEnrichment[B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SpireCodecEnrichment[A] to TransformSyntax[SpireCodecEnrichment, A] performed by method TransformSyntax in scodec. This conversion will take place only if an implicit value of type Transform[SpireCodecEnrichment] is in scope.
    Definition Classes
    TransformSyntax
  29. def widenOptc[B](f: (A) ⇒ B)(g: (B) ⇒ Option[A]): SpireCodecEnrichment[B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SpireCodecEnrichment[A] to TransformSyntax[SpireCodecEnrichment, A] performed by method TransformSyntax in scodec. This conversion will take place only if an implicit value of type Transform[SpireCodecEnrichment] is in scope.
    Definition Classes
    TransformSyntax
  30. def widenc[B](f: (A) ⇒ B)(g: (B) ⇒ Attempt[A]): SpireCodecEnrichment[B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SpireCodecEnrichment[A] to TransformSyntax[SpireCodecEnrichment, A] performed by method TransformSyntax in scodec. This conversion will take place only if an implicit value of type Transform[SpireCodecEnrichment] is in scope.
    Definition Classes
    TransformSyntax
  31. def xmap[B](f: (A) ⇒ B, g: (B) ⇒ A): SpireCodecEnrichment[B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SpireCodecEnrichment[A] to TransformSyntax[SpireCodecEnrichment, A] performed by method TransformSyntax in scodec. This conversion will take place only if an implicit value of type Transform[SpireCodecEnrichment] is in scope.
    Definition Classes
    TransformSyntax
  32. def xmapc[B](f: (A) ⇒ B)(g: (B) ⇒ A): SpireCodecEnrichment[B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SpireCodecEnrichment[A] to TransformSyntax[SpireCodecEnrichment, A] performed by method TransformSyntax in scodec. This conversion will take place only if an implicit value of type Transform[SpireCodecEnrichment] is in scope.
    Definition Classes
    TransformSyntax
  33. def [B](y: B): (SpireCodecEnrichment[A], B)

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

Deprecated Value Members

  1. def pxmap[B](f: (A) ⇒ B, g: (B) ⇒ Option[A]): SpireCodecEnrichment[B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SpireCodecEnrichment[A] to TransformSyntax[SpireCodecEnrichment, A] performed by method TransformSyntax in scodec. This conversion will take place only if an implicit value of type Transform[SpireCodecEnrichment] is in scope.
    Definition Classes
    TransformSyntax
    Annotations
    @deprecated
    Deprecated

    (Since version 1.7.0) Use widenOpt instead

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion TransformSyntax from SpireCodecEnrichment[A] to TransformSyntax[SpireCodecEnrichment, A]

Inherited by implicit conversion any2stringadd from SpireCodecEnrichment[A] to any2stringadd[SpireCodecEnrichment[A]]

Inherited by implicit conversion StringFormat from SpireCodecEnrichment[A] to StringFormat[SpireCodecEnrichment[A]]

Inherited by implicit conversion Ensuring from SpireCodecEnrichment[A] to Ensuring[SpireCodecEnrichment[A]]

Inherited by implicit conversion ArrowAssoc from SpireCodecEnrichment[A] to ArrowAssoc[SpireCodecEnrichment[A]]

Ungrouped