Success

case class Success[+T](result: T, next: SourceCursor) extends Parsed[T]

The success case of Parsed containing the result and the remaining input.

trait Serializable
trait Product
trait Equals
class Parsed[T]
class Object
trait Matchable
class Any

Value members

Concrete methods

def map[U](f: T => U): Parsed[U]
def orElse[U >: T](default: => Parsed[U]): Parsed[U]
def toEither: Either[String, T]
def toOption: Option[T]
override def toString: String
Definition Classes
Any

Inherited methods

def getOrElse[B >: T](default: => B): B

Returns the result value from the parser invocation if the parser succeeded or otherwise the specified fallback value.

Returns the result value from the parser invocation if the parser succeeded or otherwise the specified fallback value.

Inherited from:
Parsed
def isFailure: Boolean

Indicates whether this results represents an unsuccessful parser invocation.

Indicates whether this results represents an unsuccessful parser invocation.

Inherited from:
Parsed
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product

Concrete fields

val isSuccess: Boolean