pub enum SQuaJLError {
InvalidConfig(String),
DimensionMismatch {
expected: usize,
actual: usize,
},
ZeroNorm,
IncompatibleCode(String),
}Expand description
Error type for clark-hash.
Variants§
InvalidConfig(String)
The provided configuration is invalid.
DimensionMismatch
The input vector has the wrong dimension.
ZeroNorm
The vector to encode or sketch was empty or had zero norm.
IncompatibleCode(String)
A quantized code does not match the codec configuration.
Trait Implementations§
Source§impl Debug for SQuaJLError
impl Debug for SQuaJLError
Source§impl Display for SQuaJLError
impl Display for SQuaJLError
Source§impl Error for SQuaJLError
impl Error for SQuaJLError
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()
Auto Trait Implementations§
impl Freeze for SQuaJLError
impl RefUnwindSafe for SQuaJLError
impl Send for SQuaJLError
impl Sync for SQuaJLError
impl Unpin for SQuaJLError
impl UnsafeUnpin for SQuaJLError
impl UnwindSafe for SQuaJLError
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