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

skinny.micro.implicits.LowestPriorityImplicits.scala Maven / Gradle / Ivy

The newest version!
package skinny.micro.implicits

import scala.language.implicitConversions

/**
 * Lowest priority implicit conversions for TypeConverters.
 */
trait LowestPriorityImplicits extends TypeConverterSupport {

  implicit def lowestPriorityAny2T[T: Manifest]: TypeConverter[Any, T] = safe {
    case a if manifest[T].runtimeClass.isAssignableFrom(a.getClass) => a.asInstanceOf[T]
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy