Trait ndarray::RawData[][src]

pub unsafe trait RawData: Sized {
    type Elem;
    fn __private__(&self) -> PrivateMarker;
}
Expand description

Array representation trait.

For an array that meets the invariants of the ArrayBase type. This trait does not imply any ownership or lifetime; pointers to elements in the array may not be safe to dereference.

Note: RawData is not an extension interface at this point. Traits in Rust can serve many different roles. This trait is public because it is used as a bound on public methods.

Associated Types

type Elem[src]

Expand description

The array element type.

Required methods

fn __private__(&self) -> PrivateMarker[src]

Expand description

This trait is private to implement; this method exists to make it impossible to implement outside the crate.

Implementors

impl<'a, A> RawData for CowRepr<'a, A>[src]

type Elem = A

fn _data_slice(&self) -> Option<&[A]>[src]

fn _is_pointer_inbounds(&self, ptr: *const Self::Elem) -> bool[src]

impl<'a, A> RawData for ViewRepr<&'a A>[src]

type Elem = A

fn _data_slice(&self) -> Option<&[A]>[src]

fn _is_pointer_inbounds(&self, _ptr: *const Self::Elem) -> bool[src]

impl<'a, A> RawData for ViewRepr<&'a mut A>[src]

type Elem = A

fn _data_slice(&self) -> Option<&[A]>[src]

fn _is_pointer_inbounds(&self, _ptr: *const Self::Elem) -> bool[src]

impl<A> RawData for OwnedArcRepr<A>[src]

type Elem = A

fn _data_slice(&self) -> Option<&[A]>[src]

fn _is_pointer_inbounds(&self, self_ptr: *const Self::Elem) -> bool[src]

impl<A> RawData for OwnedRepr<A>[src]

type Elem = A

fn _data_slice(&self) -> Option<&[A]>[src]

fn _is_pointer_inbounds(&self, self_ptr: *const Self::Elem) -> bool[src]

impl<A> RawData for RawViewRepr<*const A>[src]

type Elem = A

fn _data_slice(&self) -> Option<&[A]>[src]

fn _is_pointer_inbounds(&self, _ptr: *const Self::Elem) -> bool[src]

impl<A> RawData for RawViewRepr<*mut A>[src]

type Elem = A

fn _data_slice(&self) -> Option<&[A]>[src]

fn _is_pointer_inbounds(&self, _ptr: *const Self::Elem) -> bool[src]