Function frunk_core::labelled::transform_from
source · pub fn transform_from<Src, Dst, Indices>(src: Src) -> Dstwhere
Src: LabelledGeneric,
Dst: LabelledGeneric,
<Src as LabelledGeneric>::Repr: Sculptor<<Dst as LabelledGeneric>::Repr, Indices>,
Expand description
Converts from one type into another assuming that their labelled generic representations can be sculpted into each other.
The “Indices” type parameter allows the compiler to figure out that the two representations can indeed be morphed into each other.