[−][src]Type Definition tract_hir::internal::tract_ndarray::RawArrayView
type RawArrayView<A, D> = ArrayBase<RawViewRepr<*const A>, D>;
A read-only array view without a lifetime.
This is similar to ArrayView but does not carry any lifetime or
ownership information, and its data cannot be read without an unsafe
conversion into an ArrayView. The relationship between RawArrayView
and ArrayView is somewhat analogous to the relationship between *const T and &T, but RawArrayView has additional requirements that *const T
does not, such as alignment and non-nullness.
The RawArrayView<A, D> is parameterized by A for the element type and
D for the dimensionality.
Raw array views have all the methods of an array (see
ArrayBase).
See also RawArrayViewMut.
Warning
You can't use this type wih an arbitrary raw pointer; see
from_shape_ptr for details.