[][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).

Methods

impl<D> Shape<D> where
    D: Dimension
[src]

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
[src]

type Dim = D

type Strides = D

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

impl<D> From<D> for Shape<D> where
    D: Dimension
[src]

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> Sync for Shape<D> where
    D: Sync

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

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

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

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

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for 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.

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

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

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