Enum ndarray::CowRepr[][src]

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

CowArray’s representation.

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

Variants

View(ViewRepr<&'a A>)

Tuple Fields

Borrowed data.

Owned(OwnedRepr<A>)

Tuple Fields

0: OwnedRepr<A>

Owned data.

Implementations

Returns true iff the data is the View variant.

Returns true iff the data is the Owned variant.

Trait Implementations

The array element type.

This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.