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
type Elem = A
type Elem = A
The array element type.
pub fn _is_pointer_inbounds(
&self,
_ptr: *const <RawViewRepr<*const A> as RawData>::Elem
) -> bool
This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more
type Elem = A
type Elem = A
The array element type.
pub fn _is_pointer_inbounds(
&self,
_ptr: *const <RawViewRepr<*mut A> as RawData>::Elem
) -> bool
This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more
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>)
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>)
pub fn try_ensure_unique<D>(&mut ArrayBase<RawViewRepr<*mut A>, D>) where
D: Dimension,
RawViewRepr<*mut A>: Sized,
type Output = RawViewRepr<*mut B>
type Output = RawViewRepr<*mut B>
The resulting array storage of the same kind but substituted element type
Unsafely translate the data representation from one element representation to another. Read more
type Output = RawViewRepr<*const B>
type Output = RawViewRepr<*const B>
The resulting array storage of the same kind but substituted element type
Unsafely translate the data representation from one element representation to another. Read more
Auto Trait Implementations
impl<A> RefUnwindSafe for RawViewRepr<A> where
A: RefUnwindSafe,
impl<A> Send for RawViewRepr<A> where
A: Send,
impl<A> Sync for RawViewRepr<A> where
A: Sync,
impl<A> Unpin for RawViewRepr<A> where
A: Unpin,
impl<A> UnwindSafe for RawViewRepr<A> where
A: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, 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
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, 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
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
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
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
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
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
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
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