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

ru.tinkoff.phobos.encoding.ElementLiteralInstances.scala Maven / Gradle / Ivy

The newest version!
package ru.tinkoff.phobos.encoding

private[encoding] trait ElementLiteralInstances {
  implicit def literalEncoder[A, L <: A](implicit encoder: ElementEncoder[A], valueOfL: ValueOf[L]): ElementEncoder[L] =
    encoder.contramap(_ => valueOfL.value)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy