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]
pub fn last_error() -> String
[src]
Get the last error message from the C++ library.
pub fn cleanup()
[src]
Clear any error from the C++ library
Trait Implementations
impl Clone for Error
[src]
fn clone(&self) -> Error
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Error
[src]
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
[src]
This method tests for !=
.
impl From<chfl_status> for Error
[src]
impl Display for Error
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more