Class

scodec.interop.scalaz

CodecSyntax

Related Doc: package scalaz

Permalink

implicit final class CodecSyntax[A] extends AnyVal

Extension methods for a Codec[A].

Source
package.scala
Linear Supertypes
AnyVal, Any
Type Hierarchy
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. CodecSyntax
  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 CodecSyntax(self: 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 CodecSyntax[A] to any2stringadd[CodecSyntax[A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (CodecSyntax[A], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from CodecSyntax[A] to ArrowAssoc[CodecSyntax[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]): CodecSyntax[B]

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

    Permalink
    Definition Classes
    Any
  8. def ensuring(cond: (CodecSyntax[A]) ⇒ Boolean, msg: ⇒ Any): CodecSyntax[A]

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

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

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

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

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

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

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

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

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

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

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

    Permalink
  20. def toString(): String

    Permalink
    Definition Classes
    Any
  21. def unitM(implicit m: Monoid[A]): Codec[Unit]

    Permalink

    Converts this to a Codec[Unit] that encodes using the zero value of the implicitly available Monoid[A] and decodes a unit value when this codec decodes an A successfully.

  22. def widen[B](f: (A) ⇒ B, g: (B) ⇒ Attempt[A]): CodecSyntax[B]

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

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

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

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

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

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

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

Shadowed Implicit Value Members

  1. val self: CodecSyntax[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from CodecSyntax[A] to TransformSyntax[CodecSyntax, A] performed by method TransformSyntax in scodec. This conversion will take place only if an implicit value of type Transform[CodecSyntax] is in scope.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (codecSyntax: TransformSyntax[CodecSyntax, A]).self
    Definition Classes
    TransformSyntax

Deprecated Value Members

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

    Permalink
    Implicit information
    This member is added by an implicit conversion from CodecSyntax[A] to TransformSyntax[CodecSyntax, A] performed by method TransformSyntax in scodec. This conversion will take place only if an implicit value of type Transform[CodecSyntax] 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 CodecSyntax[A] to TransformSyntax[CodecSyntax, A]

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

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

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

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

combinators

Ungrouped