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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy