Struct fann::FannError [] [src]

pub struct FannError {
    pub error_type: FannErrorType,
    pub error_str: String,
}

Fields

error_type: FannErrorType error_str: String

Methods

impl FannError
[src]

unsafe fn check_no_error(errdat: *mut fann_error) -> FannResult<()>

Returns an Err if the previous operation on errdat has resulted in an error, otherwise Ok(()).

unsafe fn check_zero(result: c_int, errdat: *mut fann_error, error_str: &str) -> FannResult<()>

Trait Implementations

impl PartialEq for FannError
[src]

fn eq(&self, __arg_0: &FannError) -> bool

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

fn ne(&self, __arg_0: &FannError) -> bool

This method tests for !=.

impl Eq for FannError
[src]

impl Debug for FannError
[src]

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

Formats the value using the given formatter.

impl Clone for FannError
[src]

fn clone(&self) -> FannError

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 Display for FannError
[src]

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

Formats the value using the given formatter.

impl Error for FannError
[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