Struct ndarray::OwnedRepr [−][src]
#[repr(C)]pub struct OwnedRepr<A> { /* fields omitted */ }
Expand description
Array’s representation.
Don’t use this type directly—use the type alias
Array
for the array type!
Trait Implementations
impl<A> DataOwned for OwnedRepr<A>
[src]
impl<A> DataOwned for OwnedRepr<A>
[src]type MaybeUninit = OwnedRepr<MaybeUninit<A>>
type MaybeUninit = OwnedRepr<MaybeUninit<A>>
Corresponding owned data with MaybeUninit elements
fn new(elements: Vec<A>) -> Self
[src]
fn into_shared(self) -> OwnedArcRepr<A>
[src]
impl<A> RawData for OwnedRepr<A>
[src]
impl<A> RawData for OwnedRepr<A>
[src]type Elem = A
type Elem = A
The array element type.
fn _data_slice(&self) -> Option<&[A]>
[src]
fn _is_pointer_inbounds(&self, self_ptr: *const Self::Elem) -> bool
[src]
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 OwnedRepr<A> where
A: Clone,
[src]
impl<A> RawDataClone for OwnedRepr<A> where
A: Clone,
[src]impl<A> RawDataMut for OwnedRepr<A>
[src]
impl<A> RawDataMut for OwnedRepr<A>
[src]fn try_ensure_unique<D>(_: &mut ArrayBase<Self, D>) where
Self: Sized,
D: Dimension,
[src]
Self: Sized,
D: Dimension,
fn try_is_unique(&mut self) -> Option<bool>
[src]
impl<A, B> RawDataSubst<B> for OwnedRepr<A>
[src]
impl<A, B> RawDataSubst<B> for OwnedRepr<A>
[src]impl<A> DataMut for OwnedRepr<A>
[src]
impl<A> Send for OwnedRepr<A> where
A: Send,
[src]
A: Send,
impl<A> Sync for OwnedRepr<A> where
A: Sync,
[src]
A: Sync,
Auto Trait Implementations
impl<A> RefUnwindSafe for OwnedRepr<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> Unpin for OwnedRepr<A>
impl<A> UnwindSafe for OwnedRepr<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> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The 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