← ZIO Parser docs

TransformResult

zio.parser.internal.stacksafe.ParserOp.TransformResult
final case class TransformResult(onSuccess: Any => Any, onFailure: (ParserError[Any]) => ParserError[Any]) extends ParserOp

Pop the last result from the stack, transform it and with one of the functions and push back. It is possible to pass null to onSuccess or onFailure in which case it does not touch the result.

Attributes

Source
ParserOp.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ParserOp
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

Attributes

Source
ParserOp.scala