
ru.tinkoff.phobos.encoding.AttributeLiteralInstances.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of phobos-core_2.13 Show documentation
Show all versions of phobos-core_2.13 Show documentation
Fast xml data binding library
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