Struct extendr_api::prelude::ViewRepr
source · [−]pub struct ViewRepr<A> { /* private fields */ }
Expand description
Array view’s representation.
Don’t use this type directly—use the type aliases
ArrayView
/ ArrayViewMut
for the array type!
Trait Implementations
sourceimpl<'a, A> Data for ViewRepr<&'a mut A>
impl<'a, A> Data for ViewRepr<&'a mut A>
fn into_owned<D>(
self_: ArrayBase<ViewRepr<&'a mut A>, D>
) -> ArrayBase<OwnedRepr<<ViewRepr<&'a mut A> as RawData>::Elem>, D> where
D: Dimension,
<ViewRepr<&'a mut A> as RawData>::Elem: Clone,
fn try_into_owned_nocopy<D>(
self_: ArrayBase<ViewRepr<&'a mut A>, D>
) -> Result<ArrayBase<OwnedRepr<<ViewRepr<&'a mut A> as RawData>::Elem>, D>, ArrayBase<ViewRepr<&'a mut A>, D>> where
D: Dimension,
sourceimpl<'a, A> Data for ViewRepr<&'a A>
impl<'a, A> Data for ViewRepr<&'a A>
fn into_owned<D>(
self_: ArrayBase<ViewRepr<&'a A>, D>
) -> ArrayBase<OwnedRepr<<ViewRepr<&'a A> as RawData>::Elem>, D> where
D: Dimension,
<ViewRepr<&'a A> as RawData>::Elem: Clone,
fn try_into_owned_nocopy<D>(
self_: ArrayBase<ViewRepr<&'a A>, D>
) -> Result<ArrayBase<OwnedRepr<<ViewRepr<&'a A> as RawData>::Elem>, D>, ArrayBase<ViewRepr<&'a A>, D>> where
D: Dimension,
sourceimpl<'a, A> RawData for ViewRepr<&'a A>
impl<'a, A> RawData for ViewRepr<&'a A>
type Elem = A
type Elem = A
The array element type.
fn _data_slice(&self) -> Option<&[A]>
fn _is_pointer_inbounds(
&self,
_ptr: *const <ViewRepr<&'a 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, A> RawData for ViewRepr<&'a mut A>
impl<'a, A> RawData for ViewRepr<&'a mut A>
type Elem = A
type Elem = A
The array element type.
fn _data_slice(&self) -> Option<&[A]>
fn _is_pointer_inbounds(
&self,
_ptr: *const <ViewRepr<&'a mut 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, A> RawDataClone for ViewRepr<&'a A>
impl<'a, A> RawDataClone for ViewRepr<&'a A>
sourceimpl<'a, A> RawDataMut for ViewRepr<&'a mut A>
impl<'a, A> RawDataMut for ViewRepr<&'a mut A>
sourceimpl<'a, A, B> RawDataSubst<B> for ViewRepr<&'a mut A> where
A: 'a,
B: 'a,
impl<'a, A, B> RawDataSubst<B> for ViewRepr<&'a mut A> where
A: 'a,
B: 'a,
type Output = ViewRepr<&'a mut B>
type Output = ViewRepr<&'a mut B>
The resulting array storage of the same kind but substituted element type
sourceunsafe fn data_subst(self) -> <ViewRepr<&'a mut A> as RawDataSubst<B>>::Output
unsafe fn data_subst(self) -> <ViewRepr<&'a mut A> as RawDataSubst<B>>::Output
Unsafely translate the data representation from one element representation to another. Read more
sourceimpl<'a, A, B> RawDataSubst<B> for ViewRepr<&'a A> where
A: 'a,
B: 'a,
impl<'a, A, B> RawDataSubst<B> for ViewRepr<&'a A> where
A: 'a,
B: 'a,
type Output = ViewRepr<&'a B>
type Output = ViewRepr<&'a B>
The resulting array storage of the same kind but substituted element type
sourceunsafe fn data_subst(self) -> <ViewRepr<&'a A> as RawDataSubst<B>>::Output
unsafe fn data_subst(self) -> <ViewRepr<&'a A> as RawDataSubst<B>>::Output
Unsafely translate the data representation from one element representation to another. Read more
impl<A> Copy for ViewRepr<A> where
A: Copy,
impl<'a, A> DataMut for ViewRepr<&'a mut A>
Auto Trait Implementations
impl<A> RefUnwindSafe for ViewRepr<A> where
A: RefUnwindSafe,
impl<A> Send for ViewRepr<A> where
A: Send,
impl<A> Sync for ViewRepr<A> where
A: Sync,
impl<A> Unpin for ViewRepr<A> where
A: Unpin,
impl<A> UnwindSafe for ViewRepr<A> where
A: UnwindSafe,
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more