pub enum QuantError {
InvalidDimension(String),
InvalidScheme(String),
DataCorrupted(String),
EncodingFailed(String),
DecodingFailed(String),
}Expand description
Errors that can occur during quantization and dequantization operations
Variants§
InvalidDimension(String)
Invalid or unsupported embedding dimension
InvalidScheme(String)
Unsupported quantization scheme
DataCorrupted(String)
Data corruption or format error
EncodingFailed(String)
Quantization encoding failed
DecodingFailed(String)
Dequantization decoding failed
Trait Implementations§
Source§impl Clone for QuantError
impl Clone for QuantError
Source§fn clone(&self) -> QuantError
fn clone(&self) -> QuantError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QuantError
impl Debug for QuantError
Source§impl Display for QuantError
impl Display for QuantError
Source§impl Error for QuantError
impl Error for QuantError
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for QuantError
impl PartialEq for QuantError
impl Eq for QuantError
impl StructuralPartialEq for QuantError
Auto Trait Implementations§
impl Freeze for QuantError
impl RefUnwindSafe for QuantError
impl Send for QuantError
impl Sync for QuantError
impl Unpin for QuantError
impl UnwindSafe for QuantError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)