pub enum TurboQuantError {
InvalidDimension(usize),
UnsupportedBits(u8),
DimensionMismatch {
expected: usize,
actual: usize,
},
LayerOutOfRange {
index: usize,
num_layers: usize,
},
RangeOutOfBounds {
start: usize,
end: usize,
entry_count: usize,
},
}Expand description
Errors that can occur during TurboQuant operations.
Variants§
InvalidDimension(usize)
The vector dimension is not a power of two, which is required for WHT.
UnsupportedBits(u8)
The bit width is not supported (must be 2, 3, or 4).
DimensionMismatch
The input vector length does not match the configured dimension.
LayerOutOfRange
A layer index is out of range.
RangeOutOfBounds
A range is out of bounds for the entry count.
Trait Implementations§
Source§impl Debug for TurboQuantError
impl Debug for TurboQuantError
Source§impl Display for TurboQuantError
impl Display for TurboQuantError
Source§impl Error for TurboQuantError
impl Error for TurboQuantError
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 TurboQuantError
impl RefUnwindSafe for TurboQuantError
impl Send for TurboQuantError
impl Sync for TurboQuantError
impl Unpin for TurboQuantError
impl UnsafeUnpin for TurboQuantError
impl UnwindSafe for TurboQuantError
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