scodec.interop.spire

SpireCodecEnrichment

implicit final class SpireCodecEnrichment[A] extends AnyVal

Provides enrichments for Codec[A] related to Spire.

Source
package.scala
Linear Supertypes
AnyVal, Any
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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  2. final def ##(): Int

    Definition Classes
    Any
  3. def +(other: String): String

    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)

    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

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

    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

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

    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]

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

    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]

    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]

    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]

    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]

    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 formatted(fmtstr: String): String

    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()
  16. def getClass(): Class[_ <: AnyVal]

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

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

    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
  19. val self: SpireCodecEnrichment[A]

    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 toString(): String

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

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

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

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

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

    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
  26. def widenOpt[B](f: (A) ⇒ B, g: (B) ⇒ Option[A]): SpireCodecEnrichment[B]

    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
  27. def xmap[B](f: (A) ⇒ B, g: (B) ⇒ A): SpireCodecEnrichment[B]

    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 [B](y: B): (SpireCodecEnrichment[A], B)

    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]

    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