c

zio.parser.Printer

ContramapEither

final case class ContramapEither[Err, Err2, Out, Value2, Value](printer: Printer[Err, Out, Value], from: (Value2) => Either[Err2, Value]) extends Printer[Err2, Out, Value2] with Product with Serializable

Linear Supertypes
Serializable, Product, Equals, Printer[Err2, Out, Value2], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ContramapEither
  2. Serializable
  3. Product
  4. Equals
  5. Printer
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ContramapEither(printer: Printer[Err, Out, Value], from: (Value2) => Either[Err2, Value])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def *: Printer[Err2, Out, Chunk[Value2]]

    Symbolic alias for repeat0

    Symbolic alias for repeat0

    Definition Classes
    Printer
  4. final def +: Printer[Err2, Out, Chunk[Value2]]

    Symbolic alias for repeat

    Symbolic alias for repeat

    Definition Classes
    Printer
  5. final def <+>[Err2 >: Err2, Out2 >: Out, Value2](that: => Printer[Err2, Out2, Value2]): Printer[Err2, Out2, Either[Value2, Value2]]

    Symbolic alias for orElseEither

    Symbolic alias for orElseEither

    Definition Classes
    Printer
  6. final def <>[Err2 >: Err2, Out2 >: Out, Value2 <: Value2](that: => Printer[Err2, Out2, Value2]): Printer[Err2, Out2, Value2]

    Symbolic alias for orElse

    Symbolic alias for orElse

    Definition Classes
    Printer
  7. final def <~[Err2 >: Err2, Out2 >: Out](that: => Printer[Err2, Out2, Unit]): Printer[Err2, Out2, Value2]

    Symbolic alias for zipLeft

    Symbolic alias for zipLeft

    Definition Classes
    Printer
  8. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def ?: Printer[Err2, Out, Option[Value2]]

    Symbolic alias for optional

    Symbolic alias for optional

    Definition Classes
    Printer
  10. final def apply(value: Value2): Printer[Err2, Out, Any]

    Provide this printer it's input value

    Provide this printer it's input value

    Definition Classes
    Printer
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. final def asPrinted[Value2](matches: Value2, value: Value2): Printer[Err2, Out, Value2]

    Ignores the printer's result and input and use 'result' and 'value' instead

    Ignores the printer's result and input and use 'result' and 'value' instead

    Definition Classes
    Printer
  13. final def between[Err2 >: Err2, Out2 >: Out](left: Printer[Err2, Out2, Unit], right: Printer[Err2, Out2, Unit]): Printer[Err2, Out2, Value2]

    Surround this printer with 'left' and 'right', each getting Unit as value to be printed.

    Surround this printer with 'left' and 'right', each getting Unit as value to be printed.

    Definition Classes
    Printer
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  15. final def contramap[Value2](f: (Value2) => Value2): Printer[Err2, Out, Value2]

    Maps the printer's input value with function 'f'

    Maps the printer's input value with function 'f'

    Definition Classes
    Printer
  16. final def contramapEither[Err2, Value2](from: (Value2) => Either[Err2, Value2]): Printer[Err2, Out, Value2]

    Maps the printer's result with function 'to' and its input value with 'from'.

    Maps the printer's result with function 'to' and its input value with 'from'. Both functions can fail the printer.

    Definition Classes
    Printer
  17. final def contramapTo[Err2 >: Err2, Value2](from: PartialFunction[Value2, Value2], failure: Err2): Printer[Err2, Out, Value2]

    Maps the result of the printer with the function 'to', and the value to be printed with the partial function 'from'.

    Maps the result of the printer with the function 'to', and the value to be printed with the partial function 'from'. It the partial function is not defined on the value, the printer fails with 'failure'.

    This can be used to define separate syntaxes for subtypes, that can be later combined.

    Definition Classes
    Printer
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def filter[E2 >: Err2, Value2 <: Value2](condition: (Value2) => Boolean, failure: E2): Printer[E2, Out, Value2]

    Specifies a filter condition 'condition' that gets checked on both the printed and the result value and in case it evaluates to false, fails with 'failure'.

    Specifies a filter condition 'condition' that gets checked on both the printed and the result value and in case it evaluates to false, fails with 'failure'.

    Definition Classes
    Printer
  20. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  21. final def flatten(implicit ev1: <:<[Chunk[String], Value2]): Printer[Err2, Out, String]

    Concatenates a chunk of string to be printed

    Concatenates a chunk of string to be printed

    Definition Classes
    Printer
  22. val from: (Value2) => Either[Err2, Value]
  23. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. final def mapError[Err2](f: (Err2) => Err2): Printer[Err2, Out, Value2]

    Maps the error with function 'f'

    Maps the error with function 'f'

    Definition Classes
    Printer
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def optional: Printer[Err2, Out, Option[Value2]]

    Print option values

    Print option values

    Definition Classes
    Printer
  30. final def orElse[Err2 >: Err2, Out2 >: Out, Value2 <: Value2](that: => Printer[Err2, Out2, Value2]): Printer[Err2, Out2, Value2]

    Prints this and if it fails, ignore the printed output and print 'that' instead.

    Prints this and if it fails, ignore the printed output and print 'that' instead.

    Definition Classes
    Printer
  31. final def orElseEither[Err2 >: Err2, Out2 >: Out, Value2](that: => Printer[Err2, Out2, Value2]): Printer[Err2, Out2, Either[Value2, Value2]]

    Prints this if the input is 'Left', or print 'that' if the input is 'Right'

    Prints this if the input is 'Left', or print 'that' if the input is 'Right'

    Definition Classes
    Printer
  32. final def print(value: Value2): Either[Err2, Chunk[Out]]

    Print the given 'value' to a chunk of output elements

    Print the given 'value' to a chunk of output elements

    Definition Classes
    Printer
  33. final def print[Out2 >: Out](value: Value2, target: Target[Out2]): Either[Err2, Unit]

    Print the given 'value' to the given 'target' implementation

    Print the given 'value' to the given 'target' implementation

    Definition Classes
    Printer
  34. final def printString(value: Value2)(implicit ev: <:<[Out, Char]): Either[Err2, String]

    Print the given 'value' to a string

    Print the given 'value' to a string

    Definition Classes
    Printer
  35. val printer: Printer[Err, Out, Value]
  36. def productElementNames: Iterator[String]
    Definition Classes
    Product
  37. final def repeat: Printer[Err2, Out, Chunk[Value2]]

    Repeats this printer for each element of the input chunk, assuming it has at least one element

    Repeats this printer for each element of the input chunk, assuming it has at least one element

    Definition Classes
    Printer
  38. final def repeat0: Printer[Err2, Out, Chunk[Value2]]

    Repeats this printer for each element of the input chunk, zero or more times

    Repeats this printer for each element of the input chunk, zero or more times

    Definition Classes
    Printer
  39. final def repeatUntil[Err2 >: Err2, Out2 >: Out](stopCondition: Printer[Err2, Out2, Unit]): Printer[Err2, Out2, Chunk[Value2]]

    Repeat this printer for each element of the input chunk, verifying the 'stopConfition' after each.

    Repeat this printer for each element of the input chunk, verifying the 'stopConfition' after each.

    Definition Classes
    Printer
  40. final def repeatWithSep[Err2 >: Err2, Out2 >: Out](sep: Printer[Err2, Out2, Unit]): Printer[Err2, Out2, Chunk[Value2]]

    Repeats this printer for each element of the input chunk, separated by the 'sep' printer (which gets Unit to be printed)

    Repeats this printer for each element of the input chunk, separated by the 'sep' printer (which gets Unit to be printed)

    Definition Classes
    Printer
  41. final def repeatWithSep0[Err2 >: Err2, Out2 >: Out](sep: Printer[Err2, Out2, Unit]): Printer[Err2, Out2, Chunk[Value2]]

    Repeats this printer for each element of the input chunk that can be empty, separated by the 'sep' printer (which gets Unit to be printed)

    Repeats this printer for each element of the input chunk that can be empty, separated by the 'sep' printer (which gets Unit to be printed)

    Definition Classes
    Printer
  42. final def surroundedBy[Err2 >: Err2, Out2 >: Out](other: Printer[Err2, Out2, Unit]): Printer[Err2, Out2, Value2]

    Surround this printer with 'other', which will get Unit as value to be printed.

    Surround this printer with 'other', which will get Unit as value to be printed.

    Definition Classes
    Printer
  43. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  44. final def transformOption[Value2](from: (Value2) => Option[Value2]): Printer[Option[Err2], Out, Value2]

    Maps the printer's result with function 'to' and its input value with 'from'.

    Maps the printer's result with function 'to' and its input value with 'from'. Both functions can fail the printer. Failure is indicated by None on the error channel.

    Definition Classes
    Printer
  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  48. final def widenWith[Err2 >: Err2, Value2](narrow: PartialFunction[Value2, Value2], failure: Err2): Printer[Err2, Out, Value2]

    Widen this printer's printed value type by specifying a partial function to narrow it back to the set of supported subtypes.

    Widen this printer's printed value type by specifying a partial function to narrow it back to the set of supported subtypes.

    Definition Classes
    Printer
  49. final def zipLeft[Err2 >: Err2, Out2 >: Out](that: => Printer[Err2, Out2, Unit]): Printer[Err2, Out2, Value2]

    Print 'that' by providing the unit value to it after printing this.

    Print 'that' by providing the unit value to it after printing this. The result is this printer's result.

    Definition Classes
    Printer
  50. final def |[Err2 >: Err2, Out2 >: Out, Value2 <: Value2](that: => Printer[Err2, Out2, Value2]): Printer[Err2, Out2, Value2]

    Symbolic alias for orElse

    Symbolic alias for orElse

    Definition Classes
    Printer

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Printer[Err2, Out, Value2]

Inherited from AnyRef

Inherited from Any

Ungrouped