implicit final class CodecSyntax[A] extends AnyVal
Ordering
- Grouped
- Alphabetic
- By Inheritance
Inherited
- CodecSyntax
- AnyVal
- Any
Implicitly
- by TransformSyntax
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
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 CodecSyntax[A] to any2stringadd[CodecSyntax[A]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (CodecSyntax[A], B)
- Implicit
- 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()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
def
as[B](implicit as: Transformer[A, B]): CodecSyntax[B]
- Implicit
- 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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
ensuring(cond: (CodecSyntax[A]) ⇒ Boolean, msg: ⇒ Any): CodecSyntax[A]
- Implicit
- 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
-
def
ensuring(cond: (CodecSyntax[A]) ⇒ Boolean): CodecSyntax[A]
- Implicit
- 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
-
def
ensuring(cond: Boolean, msg: ⇒ Any): CodecSyntax[A]
- Implicit
- 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
-
def
ensuring(cond: Boolean): CodecSyntax[A]
- Implicit
- 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
-
def
exmap[B](f: (A) ⇒ Attempt[B], g: (B) ⇒ Attempt[A]): CodecSyntax[B]
- Implicit
- 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
-
def
exmapc[B](f: (A) ⇒ Attempt[B])(g: (B) ⇒ Attempt[A]): CodecSyntax[B]
- Implicit
- 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
-
def
formatted(fmtstr: String): String
- Implicit
- 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()
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
narrow[B](f: (A) ⇒ Attempt[B], g: (B) ⇒ A): CodecSyntax[B]
- Implicit
- 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
-
def
narrowc[B](f: (A) ⇒ Attempt[B])(g: (B) ⇒ A): CodecSyntax[B]
- Implicit
- 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
- val self: Codec[A]
-
def
toString(): String
- Definition Classes
- Any
-
def
unitM(implicit m: Monoid[A]): Codec[Unit]
Converts this to a
Codec[Unit]that encodes using the zero value of the implicitly availableMonoid[A]and decodes a unit value when this codec decodes anAsuccessfully. -
def
widen[B](f: (A) ⇒ B, g: (B) ⇒ Attempt[A]): CodecSyntax[B]
- Implicit
- 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
-
def
widenOpt[B](f: (A) ⇒ B, g: (B) ⇒ Option[A]): CodecSyntax[B]
- Implicit
- 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
-
def
widenOptc[B](f: (A) ⇒ B)(g: (B) ⇒ Option[A]): CodecSyntax[B]
- Implicit
- 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
-
def
widenc[B](f: (A) ⇒ B)(g: (B) ⇒ Attempt[A]): CodecSyntax[B]
- Implicit
- 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
-
def
xmap[B](f: (A) ⇒ B, g: (B) ⇒ A): CodecSyntax[B]
- Implicit
- 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
-
def
xmapc[B](f: (A) ⇒ B)(g: (B) ⇒ A): CodecSyntax[B]
- Implicit
- 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
-
def
→[B](y: B): (CodecSyntax[A], B)
- Implicit
- 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
-
val
self: CodecSyntax[A]
- Implicit
- 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
-
def
pxmap[B](f: (A) ⇒ B, g: (B) ⇒ Option[A]): CodecSyntax[B]
- Implicit
- 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