Trait rerun::external::ndarray::RawDataSubst
source · pub trait RawDataSubst<A>: RawData {
type Output: RawData<Elem = A>;
// Required method
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>
.
Required Associated Types§
Required Methods§
sourceunsafe fn data_subst(self) -> Self::Output
unsafe fn data_subst(self) -> Self::Output
Unsafely translate the data representation from one element representation to another.
§Safety
Caller must ensure the two types have the same representation.
Object Safety§
This trait is not object safe.