Typeclass definition for conversions used by the com.codecommit.antixml.Converter pimp.
Note that this type is exactly isomorphic to scala.Function1, right
down to the method name (apply). Normally, such a class would in fact extend
A => B, rather than simply emulating its interface. However, because most
instances of XMLConvertable will be implicit, we cannot blithely extend
Function1. To do so would polute the scope with an unexpected proliferation
of implicit conversions which would be automatically injected by the Scala
compiler, rather than allowing us to tag them explicitly using the convert method.
Typeclass definition for conversions used by the com.codecommit.antixml.Converter pimp. Note that this type is exactly isomorphic to scala.Function1, right down to the method name (
apply
). Normally, such a class would in fact extendA => B
, rather than simply emulating its interface. However, because most instances ofXMLConvertable
will be implicit, we cannot blithely extendFunction1
. To do so would polute the scope with an unexpected proliferation of implicit conversions which would be automatically injected by the Scala compiler, rather than allowing us to tag them explicitly using theconvert
method.com.codecommit.antixml.Converter