Struct extendr_api::prelude::OwnedArcRepr
source · [−]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
sourceimpl<A> Clone for OwnedArcRepr<A>
impl<A> Clone for OwnedArcRepr<A>
sourcefn clone(&self) -> OwnedArcRepr<A>
fn clone(&self) -> OwnedArcRepr<A>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<A> Data for OwnedArcRepr<A>
impl<A> Data for OwnedArcRepr<A>
fn into_owned<D>(
self_: ArrayBase<OwnedArcRepr<A>, D>
) -> ArrayBase<OwnedRepr<<OwnedArcRepr<A> as RawData>::Elem>, D> where
A: Clone,
D: Dimension,
fn try_into_owned_nocopy<D>(
self_: ArrayBase<OwnedArcRepr<A>, D>
) -> Result<ArrayBase<OwnedRepr<<OwnedArcRepr<A> as RawData>::Elem>, D>, ArrayBase<OwnedArcRepr<A>, D>> where
D: Dimension,
sourceimpl<A> DataOwned for OwnedArcRepr<A>
impl<A> DataOwned for OwnedArcRepr<A>
type MaybeUninit = OwnedArcRepr<MaybeUninit<A>>
type MaybeUninit = OwnedArcRepr<MaybeUninit<A>>
Corresponding owned data with MaybeUninit elements
fn new(elements: Vec<A, Global>) -> OwnedArcRepr<A>
sourceimpl<A> Debug for OwnedArcRepr<A> where
A: Debug,
impl<A> Debug for OwnedArcRepr<A> where
A: Debug,
sourceimpl<A> RawData for OwnedArcRepr<A>
impl<A> RawData for OwnedArcRepr<A>
type Elem = A
type Elem = A
The array element type.
fn _data_slice(&self) -> Option<&[A]>
fn _is_pointer_inbounds(
&self,
self_ptr: *const <OwnedArcRepr<A> as RawData>::Elem
) -> bool
sourcefn __private__(&self) -> PrivateMarker
fn __private__(&self) -> PrivateMarker
This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more
sourceimpl<A> RawDataClone for OwnedArcRepr<A>
impl<A> RawDataClone for OwnedArcRepr<A>
unsafe fn clone_with_ptr(
&self,
ptr: NonNull<<OwnedArcRepr<A> as RawData>::Elem>
) -> (OwnedArcRepr<A>, NonNull<<OwnedArcRepr<A> as RawData>::Elem>)
sourceimpl<A> RawDataMut for OwnedArcRepr<A> where
A: Clone,
impl<A> RawDataMut for OwnedArcRepr<A> where
A: Clone,
fn try_ensure_unique<D>(self_: &mut ArrayBase<OwnedArcRepr<A>, D>) where
D: Dimension,
OwnedArcRepr<A>: Sized,
fn try_is_unique(&mut self) -> Option<bool>
sourceimpl<A, B> RawDataSubst<B> for OwnedArcRepr<A>
impl<A, B> RawDataSubst<B> for OwnedArcRepr<A>
type Output = OwnedArcRepr<B>
type Output = OwnedArcRepr<B>
The resulting array storage of the same kind but substituted element type
sourceunsafe fn data_subst(self) -> <OwnedArcRepr<A> as RawDataSubst<B>>::Output
unsafe fn data_subst(self) -> <OwnedArcRepr<A> as RawDataSubst<B>>::Output
Unsafely translate the data representation from one element representation to another. Read more
impl<A> DataMut for OwnedArcRepr<A> where
A: Clone,
Auto Trait Implementations
impl<A> RefUnwindSafe for OwnedArcRepr<A> where
A: RefUnwindSafe,
impl<A> Send for OwnedArcRepr<A> where
A: Send + Sync,
impl<A> Sync for OwnedArcRepr<A> where
A: Send + Sync,
impl<A> Unpin for OwnedArcRepr<A>
impl<A> UnwindSafe for OwnedArcRepr<A> where
A: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more