Struct ndarray::ShapeError [] [src]

pub struct ShapeError {
    // some fields omitted
}

An error related to array shape or layout.

Methods

impl ShapeError
[src]

fn kind(&self) -> ErrorKind

Return the ErrorKind of this error.

fn from_kind(error: ErrorKind) -> Self

Create a new ShapeError

Trait Implementations

impl Clone for ShapeError
[src]

fn clone(&self) -> ShapeError

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl PartialEq for ShapeError
[src]

fn eq(&self, rhs: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Error for ShapeError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>
1.0.0

The lower-level cause of this error, if any. Read more

impl Display for ShapeError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Debug for ShapeError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.