All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scoder.DecodeFail.scala Maven / Gradle / Ivy

The newest version!
package scoder

object DecodeFail {

  def apply[E](e: E): DecodeResult[E, Nothing] =
    DecodeResult(Left(e))

  def unapply[E, T](result: DecodeResult[E, T]): Option[E] = result match {
    case DecodeResult(Left(e)) => Some(e)
    case _ => None
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy