Enum ndarray::CowRepr[][src]

pub enum CowRepr<'a, A> {
    View(ViewRepr<&'a A>),
    Owned(OwnedRepr<A>),
}

CowArray’s representation.

Don’t use this type directly—use the type alias CowArray for the array type!

Variants

View(ViewRepr<&'a A>)

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]

impl<'a, A> DataMut for CowRepr<'a, A> where
    A: Clone
[src]

impl<'a, A> RawData for CowRepr<'a, A>[src]

type Elem = A

The array element type.

impl<'a, A> RawDataClone for CowRepr<'a, A> where
    A: Clone
[src]

impl<'a, A> RawDataMut for CowRepr<'a, A> where
    A: Clone
[src]

Auto Trait Implementations

impl<'a, A> RefUnwindSafe for CowRepr<'a, A> where
    A: RefUnwindSafe

impl<'a, A> Send for CowRepr<'a, A> where
    A: Send + Sync

impl<'a, A> Sync for CowRepr<'a, A> where
    A: Sync

impl<'a, A> Unpin for CowRepr<'a, A>

impl<'a, A> UnwindSafe for CowRepr<'a, A> where
    A: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.