Struct tract_core::internal::tract_ndarray::RawViewRepr [−][src]
pub struct RawViewRepr<A> { /* fields omitted */ }Expand description
Array pointer’s representation.
Don’t use this type directly—use the type aliases
RawArrayView /
RawArrayViewMut for the array type!
Trait Implementations
impl<A> Clone for RawViewRepr<A> where
A: Clone, [src]
impl<A> Clone for RawViewRepr<A> where
A: Clone, [src]pub fn clone(&self) -> RawViewRepr<A>[src]
pub fn clone(&self) -> RawViewRepr<A>[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl<A> RawData for RawViewRepr<*mut A>[src]
impl<A> RawData for RawViewRepr<*mut A>[src]type Elem = A
type Elem = AThe array element type.
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
fn __private__(&self) -> PrivateMarker[src]
fn __private__(&self) -> PrivateMarker[src]This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more
impl<A> RawData for RawViewRepr<*const A>[src]
impl<A> RawData for RawViewRepr<*const A>[src]type Elem = A
type Elem = AThe array element type.
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
fn __private__(&self) -> PrivateMarker[src]
fn __private__(&self) -> PrivateMarker[src]This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more
impl<A> RawDataClone for RawViewRepr<*const A>[src]
impl<A> RawDataClone for RawViewRepr<*const A>[src]pub unsafe fn clone_with_ptr(
&self,
ptr: NonNull<<RawViewRepr<*const A> as RawData>::Elem>
) -> (RawViewRepr<*const A>, NonNull<<RawViewRepr<*const A> as RawData>::Elem>)[src]
&self,
ptr: NonNull<<RawViewRepr<*const A> as RawData>::Elem>
) -> (RawViewRepr<*const A>, NonNull<<RawViewRepr<*const A> as RawData>::Elem>)
impl<A> RawDataClone for RawViewRepr<*mut A>[src]
impl<A> RawDataClone for RawViewRepr<*mut A>[src]pub unsafe fn clone_with_ptr(
&self,
ptr: NonNull<<RawViewRepr<*mut A> as RawData>::Elem>
) -> (RawViewRepr<*mut A>, NonNull<<RawViewRepr<*mut A> as RawData>::Elem>)[src]
&self,
ptr: NonNull<<RawViewRepr<*mut A> as RawData>::Elem>
) -> (RawViewRepr<*mut A>, NonNull<<RawViewRepr<*mut A> as RawData>::Elem>)
impl<A> RawDataMut for RawViewRepr<*mut A>[src]
impl<A> RawDataMut for RawViewRepr<*mut A>[src]pub fn try_ensure_unique<D>(&mut ArrayBase<RawViewRepr<*mut A>, D>) where
D: Dimension,
RawViewRepr<*mut A>: Sized, [src]
D: Dimension,
RawViewRepr<*mut A>: Sized,
pub fn try_is_unique(&mut self) -> Option<bool>[src]
impl<A, B> RawDataSubst<B> for RawViewRepr<*const A>[src]
impl<A, B> RawDataSubst<B> for RawViewRepr<*const A>[src]type Output = RawViewRepr<*const B>
type Output = RawViewRepr<*const B>The resulting array storage of the same kind but substituted element type
pub unsafe fn data_subst(
self
) -> <RawViewRepr<*const A> as RawDataSubst<B>>::Output[src]
pub unsafe fn data_subst(
self
) -> <RawViewRepr<*const A> as RawDataSubst<B>>::Output[src]Unsafely translate the data representation from one element representation to another. Read more
impl<A, B> RawDataSubst<B> for RawViewRepr<*mut A>[src]
impl<A, B> RawDataSubst<B> for RawViewRepr<*mut A>[src]type Output = RawViewRepr<*mut B>
type Output = RawViewRepr<*mut B>The resulting array storage of the same kind but substituted element type
pub unsafe fn data_subst(
self
) -> <RawViewRepr<*mut A> as RawDataSubst<B>>::Output[src]
pub unsafe fn data_subst(
self
) -> <RawViewRepr<*mut A> as RawDataSubst<B>>::Output[src]Unsafely translate the data representation from one element representation to another. Read more
impl<A> Copy for RawViewRepr<A> where
A: Copy, [src]
A: Copy,
Auto Trait Implementations
impl<A> RefUnwindSafe for RawViewRepr<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> Send for RawViewRepr<A> where
A: Send,
A: Send,
impl<A> Sync for RawViewRepr<A> where
A: Sync,
A: Sync,
impl<A> Unpin for RawViewRepr<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for RawViewRepr<A> where
A: UnwindSafe,
A: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any, [src]
impl<T> Downcast for T where
T: Any, [src]pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<W, Global>
impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
A: Allocator,
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;[src]
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<W, Global>
impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
A: Allocator,
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;[src]Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>[src]Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
pub fn as_any(&self) -> &(dyn Any + 'static)[src]
pub fn as_any(&self) -> &(dyn Any + 'static)[src]Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)[src]
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)[src]Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more
impl<T> DowncastSync for T where
T: Any + Send + Sync, [src]
impl<T> DowncastSync for T where
T: Any + Send + Sync, [src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more