
zeroformatter.FormatterHelper.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zero-formatter_2.12 Show documentation
Show all versions of zero-formatter_2.12 Show documentation
Implementation of ZeroFormatter in Scala
The newest version!
package zeroformatter
import shapeless._
private[zeroformatter] object FormatterHelper {
case class ObjectSerializerResult(encoder: Encoder, offset: Int, byteSize: Int)
object genObjectFormatter extends Poly2 {
implicit def gen[T, U <: HList](implicit F: Formatter[T]) =
at[T, U]((_, acc) => F :: acc)
}
object zero extends Poly0 {
implicit def zero[T] = at[T](null.asInstanceOf[T])
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy