[][src]Struct ndarray::Shape

pub struct Shape<D> { /* fields omitted */ }

A contiguous array shape of n dimensions.

Either c- or f- memory ordered (c a.k.a row major is the default).


impl<D> Shape<D> where
    D: Dimension

pub fn size(&self) -> usize[src]

Return the size of the shape in number of elements

Trait Implementations

impl<D> ShapeBuilder for Shape<D> where
    D: Dimension

type Dim = D

type Strides = D

impl<D: Clone> Clone for Shape<D>[src]

impl<D> From<D> for Shape<D> where
    D: Dimension

fn from(dimension: D) -> Shape<D>[src]

Create a Shape from dimension, using the default memory layout.

impl<D: Copy> Copy for Shape<D>[src]

impl<D: Debug> Debug for Shape<D>[src]

Auto Trait Implementations

impl<D> Send for Shape<D> where
    D: Send

impl<D> Unpin for Shape<D> where
    D: Unpin

impl<D> Sync for Shape<D> where
    D: Sync

impl<D> UnwindSafe for Shape<D> where
    D: UnwindSafe

impl<D> RefUnwindSafe for Shape<D> where
    D: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

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