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]
impl FannError
pub unsafe fn check_no_error(errdat: *mut fann_error) -> FannResult<()>
[src]
pub 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(())
.
pub unsafe fn check_zero(
result: c_int,
errdat: *mut fann_error,
error_str: &str
) -> FannResult<()>
[src]
pub unsafe fn check_zero(
result: c_int,
errdat: *mut fann_error,
error_str: &str
) -> FannResult<()>
Trait Implementations
impl Clone for FannError
[src]
impl Clone for FannError
fn clone(&self) -> FannError
[src]
fn clone(&self) -> FannError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for FannError
[src]
impl Debug for FannError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for FannError
[src]
impl Eq for FannError
impl PartialEq for FannError
[src]
impl PartialEq for FannError
fn eq(&self, other: &FannError) -> bool
[src]
fn eq(&self, other: &FannError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &FannError) -> bool
[src]
fn ne(&self, other: &FannError) -> bool
This method tests for !=
.
impl Display for FannError
[src]
impl Display for FannError
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Error for FannError
[src]
impl Error for FannError