pub trait RawDataSubst<A>: RawData {
    type Output: RawData
        <Self::Output as RawData>::Elem == A
; unsafe fn data_subst(self) -> Self::Output; }
Expand description

Array representation trait.

The RawDataSubst trait maps the element type of array storage, while keeping the same kind of storage.

For example, RawDataSubst<B> can map the type OwnedRepr<A> to OwnedRepr<B>.

Associated Types

The resulting array storage of the same kind but substituted element type

Required methods

Unsafely translate the data representation from one element representation to another.


Caller must ensure the two types have the same representation.