Enum ndarray::CowRepr [−][src]
CowArray’s representation.
Don’t use this type directly—use the type alias
CowArray
for the array type!
Variants
Borrowed data.
Owned(OwnedRepr<A>)
Owned data.
Implementations
impl<'a, A> CowRepr<'a, A>
[src]
pub fn is_view(&self) -> bool
[src]
Returns true
iff the data is the View
variant.
pub fn is_owned(&self) -> bool
[src]
Returns true
iff the data is the Owned
variant.
Trait Implementations
impl<'a, A> Data for CowRepr<'a, A>
[src]
fn into_owned<D>(
self_: ArrayBase<CowRepr<'a, A>, D>
) -> ArrayBase<OwnedRepr<Self::Elem>, D> where
A: Clone,
D: Dimension,
[src]
self_: ArrayBase<CowRepr<'a, A>, D>
) -> ArrayBase<OwnedRepr<Self::Elem>, D> where
A: Clone,
D: Dimension,
impl<'a, A> DataMut for CowRepr<'a, A> where
A: Clone,
[src]
A: Clone,
impl<'a, A> RawData for CowRepr<'a, A>
[src]
type Elem = A
The array element type.
fn _data_slice(&self) -> Option<&[A]>
[src]
fn __private__(&self) -> PrivateMarker
[src]
impl<'a, A> RawDataClone for CowRepr<'a, A> where
A: Clone,
[src]
A: Clone,
impl<'a, A> RawDataMut for CowRepr<'a, A> where
A: Clone,
[src]
A: Clone,
fn try_ensure_unique<D>(array: &mut ArrayBase<Self, D>) where
Self: Sized,
D: Dimension,
[src]
Self: Sized,
D: Dimension,
fn try_is_unique(&mut self) -> Option<bool>
[src]
Auto Trait Implementations
impl<'a, A> RefUnwindSafe for CowRepr<'a, A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<'a, A> Send for CowRepr<'a, A> where
A: Send + Sync,
A: Send + Sync,
impl<'a, A> Sync for CowRepr<'a, A> where
A: Sync,
A: Sync,
impl<'a, A> Unpin for CowRepr<'a, A>
impl<'a, A> UnwindSafe for CowRepr<'a, A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,