Function frunk_core::labelled::transform_from [] [src]

pub fn transform_from<A, B, Indices>(a: A) -> B where
    A: LabelledGeneric,
    B: LabelledGeneric,
    <A as LabelledGeneric>::Repr: Sculptor<<B as LabelledGeneric>::Repr, Indices>, 

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.