pub enum SparseVectorValueError {
Empty,
InvalidMaximumDimension(u32),
TooManyEntries(usize),
ByteLengthOverflow,
FieldBytesExceeded(usize),
DimensionsNotStrict(usize),
DimensionOutOfRange {
ordinal: usize,
dimension: u32,
maximum: u32,
},
NonFiniteWeight(usize),
ZeroWeight(usize),
F16Overflow(usize),
}Variants§
Empty
InvalidMaximumDimension(u32)
TooManyEntries(usize)
ByteLengthOverflow
FieldBytesExceeded(usize)
DimensionsNotStrict(usize)
DimensionOutOfRange
NonFiniteWeight(usize)
ZeroWeight(usize)
F16Overflow(usize)
Trait Implementations§
Source§impl Clone for SparseVectorValueError
impl Clone for SparseVectorValueError
Source§impl Debug for SparseVectorValueError
impl Debug for SparseVectorValueError
Source§impl Display for SparseVectorValueError
impl Display for SparseVectorValueError
impl Eq for SparseVectorValueError
Source§impl Error for SparseVectorValueError
impl Error for SparseVectorValueError
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 PartialEq for SparseVectorValueError
impl PartialEq for SparseVectorValueError
impl StructuralPartialEq for SparseVectorValueError
Auto Trait Implementations§
impl Freeze for SparseVectorValueError
impl RefUnwindSafe for SparseVectorValueError
impl Send for SparseVectorValueError
impl Sync for SparseVectorValueError
impl Unpin for SparseVectorValueError
impl UnsafeUnpin for SparseVectorValueError
impl UnwindSafe for SparseVectorValueError
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