Trait tract_core::internal::tract_ndarray::RawData [−][src]
pub unsafe trait RawData { 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
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> RawData for OwnedArcRepr<A>
[src]
impl<A> RawData for OwnedArcRepr<A>
[src]type Elem = A
pub fn _data_slice(&self) -> Option<&[A]>
[src]
pub fn _is_pointer_inbounds(
&self,
self_ptr: *const <OwnedArcRepr<A> as RawData>::Elem
) -> bool
[src]
&self,
self_ptr: *const <OwnedArcRepr<A> as RawData>::Elem
) -> bool
impl<A> RawData for RawViewRepr<*const A>
[src]
impl<A> RawData for RawViewRepr<*const A>
[src]type Elem = A
pub fn _data_slice(&self) -> Option<&[A]>
[src]
pub fn _is_pointer_inbounds(
&self,
_ptr: *const <RawViewRepr<*const A> as RawData>::Elem
) -> bool
[src]
&self,
_ptr: *const <RawViewRepr<*const A> as RawData>::Elem
) -> bool
impl<A> RawData for RawViewRepr<*mut A>
[src]
impl<A> RawData for RawViewRepr<*mut A>
[src]type Elem = A
pub fn _data_slice(&self) -> Option<&[A]>
[src]
pub fn _is_pointer_inbounds(
&self,
_ptr: *const <RawViewRepr<*mut A> as RawData>::Elem
) -> bool
[src]
&self,
_ptr: *const <RawViewRepr<*mut A> as RawData>::Elem
) -> bool