Function frunk::generic::convert_from

source ·
pub fn convert_from<Src, Dst, Repr>(src: Src) -> Dst
where Src: Generic<Repr = Repr>, Dst: Generic<Repr = Repr>,
Expand description

Converts one type Src into another type Dst assuming they have the same representation type Repr.