[−][src]Enum ndarray::CowRepr
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.
Methods
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]
A: Clone,
impl<'a, A> RawData for CowRepr<'a, A>
[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,
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,
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>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,