case class Success[+T, Elem, Repr](value: T, index: Int) extends Parsed[T, Elem, Repr] with Product with Serializable
- value
The result of this parse
- index
The index where the parse completed; may be less than the length of input
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Success
- Serializable
- Product
- Equals
- Parsed
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Success(value: T, index: Int)
- value
The result of this parse
- index
The index where the parse completed; may be less than the length of input
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fold[X](onFailure: (Parser[_, Elem, Repr], Int, Extra[Elem, Repr]) => X, onSuccess: (T, Int) => X): X
Returns the result of $onSuccess if the parsing is successful, otherwise it returns the result of $onFailure
Returns the result of $onSuccess if the parsing is successful, otherwise it returns the result of $onFailure
- Definition Classes
- Parsed
- def get: Success[T, Elem, Repr]
Converts this instance of Parsed into a Parsed.Success or throws an exception if it was a failure.
Converts this instance of Parsed into a Parsed.Success or throws an exception if it was a failure.
- Definition Classes
- Parsed
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val index: Int
Where the parser ended up, whether the result was a success or failure
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val value: T
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()