pub enum ScannError {
InvalidArgument(String),
Scann(String),
}Expand description
Error from scann-core, or from argument validation in these bindings.
Variants§
InvalidArgument(String)
Rejected by the bindings before reaching C++ (shape mismatch, value out of range, …).
Scann(String)
A non-OK absl::Status (or C++ exception) from scann-core.
Trait Implementations§
Source§impl Clone for ScannError
impl Clone for ScannError
Source§impl Debug for ScannError
impl Debug for ScannError
Source§impl Display for ScannError
impl Display for ScannError
impl Eq for ScannError
Source§impl Error for ScannError
impl Error for ScannError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Exception> for ScannError
impl From<Exception> for ScannError
Source§impl PartialEq for ScannError
impl PartialEq for ScannError
impl StructuralPartialEq for ScannError
Auto Trait Implementations§
impl Freeze for ScannError
impl RefUnwindSafe for ScannError
impl Send for ScannError
impl Sync for ScannError
impl Unpin for ScannError
impl UnsafeUnpin for ScannError
impl UnwindSafe for ScannError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more