← ZIO Parser docs

TransformResultToOption

zio.parser.internal.stacksafe.ParserOp.TransformResultToOption
final case class TransformResultToOption(checkBranchPosition: Boolean) extends ParserOp

Pop the last result from the stack and if it was success, respush wrapped in Some, if it was failure, repush as a successful None. When checkBranchPosition is true, if position was moved compared to the last branch position then keep the failure.

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