io.scalaland.chimney.PartialTransformer
See thePartialTransformer companion object
@FunctionalInterface
trait PartialTransformer[From, To] extends AutoDerived[From, To]
Type class expressing partial transformation between source type From and target type To, with the ability of reporting path-annotated transformation error(s).
Type parameters
- From
-
type of input value
- To
-
type of output value
Attributes
- See also
- Since
-
0.7.0
- Note
-
You should not need to instantiate this class manually, if you can derive it - take a look at io.scalaland.chimney.PartialTransformer.derive and io.scalaland.chimney.PartialTransformer.define methods for that. Manual intantiation is only necessary if you want to add support for the transformation that is not supported out of the box. Even then consult https://chimney.readthedocs.io/cookbook/#integrations first!
- Companion
- object
- Graph
-
- Supertypes
Members list
In this article