Struct fann::FannError [] [src]

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

Fields

error_type
error_str

Methods

impl FannError

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 Display for FannError

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

impl Error for FannError

fn description(&self) -> &str

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

Derived Implementations

impl PartialEq for FannError

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

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

impl Eq for FannError

impl Debug for FannError

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

impl Clone for FannError

fn clone(&self) -> FannError

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