Packages

sealed abstract class Unpickled[+T] extends AnyRef

A base class representing unpickler result. It has two subclasses: UnpickleSuccess for successful unpicklings and UnpickleFailure for failures, where a value of the given type T could not be unpickled from input.

T

the type of unpickled values in case of success.

Source
Pickler.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Unpickled
  2. AnyRef
  3. Any
Implicitly
  1. by TildeDecorator
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def flatMap[U](f: (T) => Unpickled[U]): Unpickled[U]

    Transforms success values to successes or failures using given function, leaves failures alone.

    Transforms success values to successes or failures using given function, leaves failures alone.

    f

    the function to apply.

  2. def map[U](f: (T) => U): Unpickled[U]

    Transforms success values to success values using given function, leaves failures alone

    Transforms success values to success values using given function, leaves failures alone

    f

    the function to apply.

  3. def orElse[U >: T](alt: => Unpickled[U]): Unpickled[U]

    Tries alternate expression if current result is a failure

    Tries alternate expression if current result is a failure

    alt

    the alternate expression to be tried in case of failure

  4. def requireSuccess: UnpickleSuccess[T]

    Transforms failures into thrown MalformedInput exceptions.

    Transforms failures into thrown MalformedInput exceptions.

    Exceptions thrown

    Lexer.MalformedInput if current result is a failure

  5. def ~[T](y: T): ~[Unpickled[T], T]

    Infix method that forms a ~-pair.

    Infix method that forms a ~-pair.

    Implicit
    This member is added by an implicit conversion from Unpickled[T] toTildeDecorator[Unpickled[T]] performed by method TildeDecorator in scala.tools.nsc.interactive.Pickler.
    Definition Classes
    TildeDecorator