o

kantan.csv

ParseResult

object ParseResult extends WithDefault[ParseError]

Provides convenience methods for creating instances of ParseResult.

Source
ParseResult.scala
Linear Supertypes
WithDefault[ParseError], Simple[ParseError], Simple[ParseError], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ParseResult
  2. WithDefault
  3. Simple
  4. Simple
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def apply[S](s: => S): Either[ParseError, S]
    Definition Classes
    WithDefault
    Annotations
    @inline()
  2. def failure(f: ParseError): Either[ParseError, Nothing]
    Definition Classes
    Simple
    Annotations
    @inline()
  3. def fromTry[S](t: Try[S]): Either[ParseError, S]
    Definition Classes
    WithDefault
    Annotations
    @inline()
  4. def io(e: Throwable): ParseResult[Nothing]

    Creates a new ParseResult failure wrapping a ParseError.IOError error.

    Creates a new ParseResult failure wrapping a ParseError.IOError error.

    Example:
    1. scala> ParseResult.io(new java.io.IOException("some sort of io error"))
      res0: ParseResult[Nothing] = Left(IOError: some sort of io error)
  5. def noSuchElement: ParseResult[Nothing]

    Creates a new ParseResult failure wrapping a ParseError.NoSuchElement error.

    Creates a new ParseResult failure wrapping a ParseError.NoSuchElement error.

    Example:
    1. scala> ParseResult.noSuchElement
      res0: ParseResult[Nothing] = Left(NoSuchElement: trying to read from an empty reader)
  6. def sequence[S, M[X] <: IterableOnce[X]](rs: M[Either[ParseError, S]])(implicit bf: BuildFrom[M[Either[ParseError, S]], S, M[S]]): Either[ParseError, M[S]]
    Definition Classes
    Simple
    Annotations
    @inline()
  7. def success[S](s: S): Either[ParseError, S]
    Definition Classes
    Simple
    Annotations
    @inline()