#[repr(C)]
pub enum fann_errno_enum {
Show 19 variants FANN_E_NO_ERROR = 0, FANN_E_CANT_OPEN_CONFIG_R = 1, FANN_E_CANT_OPEN_CONFIG_W = 2, FANN_E_WRONG_CONFIG_VERSION = 3, FANN_E_CANT_READ_CONFIG = 4, FANN_E_CANT_READ_NEURON = 5, FANN_E_CANT_READ_CONNECTIONS = 6, FANN_E_WRONG_NUM_CONNECTIONS = 7, FANN_E_CANT_OPEN_TD_W = 8, FANN_E_CANT_OPEN_TD_R = 9, FANN_E_CANT_READ_TD = 10, FANN_E_CANT_ALLOCATE_MEM = 11, FANN_E_CANT_TRAIN_ACTIVATION = 12, FANN_E_CANT_USE_ACTIVATION = 13, FANN_E_TRAIN_DATA_MISMATCH = 14, FANN_E_CANT_USE_TRAIN_ALG = 15, FANN_E_TRAIN_DATA_SUBSET = 16, FANN_E_INDEX_OUT_OF_BOUND = 17, FANN_E_SCALE_NOT_PRESENT = 18,
}
Expand description

Error events on fann and fann_train_data.

Variants§

§

FANN_E_NO_ERROR = 0

No error

§

FANN_E_CANT_OPEN_CONFIG_R = 1

Unable to open configuration file for reading

§

FANN_E_CANT_OPEN_CONFIG_W = 2

Unable to open configuration file for writing

§

FANN_E_WRONG_CONFIG_VERSION = 3

Wrong version of configuration file

§

FANN_E_CANT_READ_CONFIG = 4

Error reading info from configuration file

§

FANN_E_CANT_READ_NEURON = 5

Error reading neuron info from configuration file

§

FANN_E_CANT_READ_CONNECTIONS = 6

Error reading connections from configuration file

§

FANN_E_WRONG_NUM_CONNECTIONS = 7

Number of connections not equal to the number expected

§

FANN_E_CANT_OPEN_TD_W = 8

Unable to open train data file for writing

§

FANN_E_CANT_OPEN_TD_R = 9

Unable to open train data file for reading

§

FANN_E_CANT_READ_TD = 10

Error reading training data from file

§

FANN_E_CANT_ALLOCATE_MEM = 11

Unable to allocate memory

§

FANN_E_CANT_TRAIN_ACTIVATION = 12

Unable to train with the selected activation function

§

FANN_E_CANT_USE_ACTIVATION = 13

Unable to use the selected activation function

§

FANN_E_TRAIN_DATA_MISMATCH = 14

Irreconcilable differences between two fann_train_data structures

§

FANN_E_CANT_USE_TRAIN_ALG = 15

Unable to use the selected training algorithm

§

FANN_E_TRAIN_DATA_SUBSET = 16

Trying to take subset which is not within the training set

§

FANN_E_INDEX_OUT_OF_BOUND = 17

Index is out of bound

§

FANN_E_SCALE_NOT_PRESENT = 18

Scaling parameters not present

Trait Implementations§

source§

impl Clone for fann_errno_enum

source§

fn clone(&self) -> fann_errno_enum

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Copy for fann_errno_enum

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.