Type.PConvertTo protocol (etl_core v0.1.55)
Protocol oriented to the definition of the function to convert from one data type to another
Summary
Functions
Converts a value to the equivalent of the defined type
Types
@type t() :: term()
Functions
Link to this function
convert_to(x, type)
Converts a value to the equivalent of the defined type
Parameters:
-x:t(). Value.
- type: Atom. Data type to convert.
Return:
- type()