Struct chemfiles::Error
[−]
[src]
pub struct Error {
pub status: Status,
pub message: String,
}Error type for Chemfiles.
Fields
status: Status
The error status code
message: String
A message describing the error cause
Methods
impl Error[src]
fn last_error() -> String
Get the last error message from the C++ library.
fn cleanup()
Clear any error from the C++ library
Trait Implementations
impl Clone for Error[src]
fn clone(&self) -> Error
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 Debug for Error[src]
impl PartialEq for Error[src]
fn eq(&self, __arg_0: &Error) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Error) -> bool
This method tests for !=.
impl From<chfl_status> for Error[src]
impl Display for Error[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more