Struct tract_core::internal::tract_ndarray::OwnedArcRepr [−][src]
pub struct OwnedArcRepr<A>(_);
Expand description
ArcArray’s representation.
Don’t use this type directly—use the type alias
ArcArray for the array type!
Trait Implementations
impl<A> Clone for OwnedArcRepr<A>[src]
impl<A> Clone for OwnedArcRepr<A>[src]pub fn clone(&self) -> OwnedArcRepr<A>[src]
pub fn clone(&self) -> OwnedArcRepr<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> Data for OwnedArcRepr<A>[src]
impl<A> Data for OwnedArcRepr<A>[src]pub fn into_owned<D>(
self_: ArrayBase<OwnedArcRepr<A>, D>
) -> ArrayBase<OwnedRepr<<OwnedArcRepr<A> as RawData>::Elem>, D> where
D: Dimension,
A: Clone, [src]
self_: ArrayBase<OwnedArcRepr<A>, D>
) -> ArrayBase<OwnedRepr<<OwnedArcRepr<A> as RawData>::Elem>, D> where
D: Dimension,
A: Clone,
pub fn to_shared<D>(
self_: &ArrayBase<OwnedArcRepr<A>, D>
) -> ArrayBase<OwnedArcRepr<<OwnedArcRepr<A> as RawData>::Elem>, D> where
D: Dimension,
<OwnedArcRepr<A> as RawData>::Elem: Clone, [src]
self_: &ArrayBase<OwnedArcRepr<A>, D>
) -> ArrayBase<OwnedArcRepr<<OwnedArcRepr<A> as RawData>::Elem>, D> where
D: Dimension,
<OwnedArcRepr<A> as RawData>::Elem: Clone,
impl<A> DataOwned for OwnedArcRepr<A>[src]
impl<A> DataOwned for OwnedArcRepr<A>[src]type MaybeUninit = OwnedArcRepr<MaybeUninit<A>>
type MaybeUninit = OwnedArcRepr<MaybeUninit<A>>Corresponding owned data with MaybeUninit elements
pub fn new(elements: Vec<A, Global>) -> OwnedArcRepr<A>[src]
pub fn into_shared(self) -> OwnedArcRepr<A>[src]
impl<A> Debug for OwnedArcRepr<A> where
A: Debug, [src]
impl<A> Debug for OwnedArcRepr<A> where
A: Debug, [src]impl<A> RawData for OwnedArcRepr<A>[src]
impl<A> RawData for OwnedArcRepr<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,
self_ptr: *const <OwnedArcRepr<A> as RawData>::Elem
) -> bool[src]
&self,
self_ptr: *const <OwnedArcRepr<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 OwnedArcRepr<A>[src]
impl<A> RawDataClone for OwnedArcRepr<A>[src]pub unsafe fn clone_with_ptr(
&self,
ptr: NonNull<<OwnedArcRepr<A> as RawData>::Elem>
) -> (OwnedArcRepr<A>, NonNull<<OwnedArcRepr<A> as RawData>::Elem>)[src]
&self,
ptr: NonNull<<OwnedArcRepr<A> as RawData>::Elem>
) -> (OwnedArcRepr<A>, NonNull<<OwnedArcRepr<A> as RawData>::Elem>)
impl<A> RawDataMut for OwnedArcRepr<A> where
A: Clone, [src]
impl<A> RawDataMut for OwnedArcRepr<A> where
A: Clone, [src]pub fn try_ensure_unique<D>(self_: &mut ArrayBase<OwnedArcRepr<A>, D>) where
D: Dimension,
OwnedArcRepr<A>: Sized, [src]
D: Dimension,
OwnedArcRepr<A>: Sized,
pub fn try_is_unique(&mut self) -> Option<bool>[src]
impl<A, B> RawDataSubst<B> for OwnedArcRepr<A>[src]
impl<A, B> RawDataSubst<B> for OwnedArcRepr<A>[src]type Output = OwnedArcRepr<B>
type Output = OwnedArcRepr<B>The resulting array storage of the same kind but substituted element type
pub unsafe fn data_subst(self) -> <OwnedArcRepr<A> as RawDataSubst<B>>::Output[src]
pub unsafe fn data_subst(self) -> <OwnedArcRepr<A> as RawDataSubst<B>>::Output[src]Unsafely translate the data representation from one element representation to another. Read more
impl<A> DataMut for OwnedArcRepr<A> where
A: Clone, [src]
A: Clone,
impl<A> DataShared for OwnedArcRepr<A>[src]
Auto Trait Implementations
impl<A> RefUnwindSafe for OwnedArcRepr<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> Send for OwnedArcRepr<A> where
A: Send + Sync,
A: Send + Sync,
impl<A> Sync for OwnedArcRepr<A> where
A: Send + Sync,
A: Send + Sync,
impl<A> Unpin for OwnedArcRepr<A>
impl<A> UnwindSafe for OwnedArcRepr<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
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