[][src]Function frunk::generic::map_repr

pub fn map_repr<Origin, Mapper>(val: Origin, mapper: Mapper) -> Origin where
    Mapper: FnOnce(<Origin as Generic>::Repr) -> <Origin as Generic>::Repr,
    Origin: Generic

Maps a value of a given type Origin using a function on the representation type Repr of Origin.