Struct faiss::error::NativeError
source · pub struct NativeError { /* private fields */ }
Expand description
An error derived from a native Faiss exception.
Implementations§
source§impl NativeError
impl NativeError
source§impl NativeError
impl NativeError
sourcepub fn from_last_error(code: c_int) -> Self
pub fn from_last_error(code: c_int) -> Self
Create a native error value by taking the error from the last failed operation.
Panics
The operation is meant to be used immediately after a operation which returned a non-zero error code. This function might panic if no operation was made or the last operation was successful.
Trait Implementations§
source§impl Clone for NativeError
impl Clone for NativeError
source§fn clone(&self) -> NativeError
fn clone(&self) -> NativeError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NativeError
impl Debug for NativeError
source§impl Display for NativeError
impl Display for NativeError
source§impl Error for NativeError
impl Error for NativeError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
source§impl From<NativeError> for Error
impl From<NativeError> for Error
source§fn from(e: NativeError) -> Self
fn from(e: NativeError) -> Self
Converts to this type from the input type.