pub enum VqError {
DimensionMismatch {
expected: usize,
found: usize,
},
EmptyInput,
InvalidParameter {
parameter: &'static str,
reason: String,
},
InvalidData(String),
FfiError(String),
}Expand description
Crate-specific error type for Vq operations.
Variants§
DimensionMismatch
Vectors have different dimensions where they were expected to match.
EmptyInput
Input data is empty when at least one element is required.
InvalidParameter
A configuration parameter is invalid (e.g., k=0, levels > 256).
InvalidData(String)
Input data contains invalid values (NaN, Infinity, etc.).
FfiError(String)
FFI operation failed.
Trait Implementations§
Source§impl Error for VqError
impl Error for VqError
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 VqError
impl RefUnwindSafe for VqError
impl Send for VqError
impl Sync for VqError
impl Unpin for VqError
impl UnwindSafe for VqError
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