pub enum VectorValueError {
EmptySpaceName,
SpaceNameTooLong,
InvalidSpaceName,
EmptyVector,
DimensionTooLarge,
InvalidQ15Element,
ZeroVector,
DimensionMismatch,
}Expand description
Failure to construct a canonical shared vector value.
Variants§
EmptySpaceName
The vector-space name is empty.
SpaceNameTooLong
The vector-space name exceeds its byte limit.
InvalidSpaceName
The vector-space name does not match the canonical ASCII grammar.
EmptyVector
A vector has no elements.
DimensionTooLarge
A vector exceeds the maximum dimension.
InvalidQ15Element
Signed Q15 reserves i16::MIN and therefore rejects it.
ZeroVector
Cosine is undefined for an all-zero vector.
DimensionMismatch
A space dimension and vector dimension differ.
Trait Implementations§
Source§impl Clone for VectorValueError
impl Clone for VectorValueError
Source§fn clone(&self) -> VectorValueError
fn clone(&self) -> VectorValueError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VectorValueError
Source§impl Debug for VectorValueError
impl Debug for VectorValueError
Source§impl Display for VectorValueError
impl Display for VectorValueError
impl Eq for VectorValueError
Source§impl Error for VectorValueError
impl Error for VectorValueError
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 VectorValueError
impl PartialEq for VectorValueError
impl StructuralPartialEq for VectorValueError
Auto Trait Implementations§
impl Freeze for VectorValueError
impl RefUnwindSafe for VectorValueError
impl Send for VectorValueError
impl Sync for VectorValueError
impl Unpin for VectorValueError
impl UnsafeUnpin for VectorValueError
impl UnwindSafe for VectorValueError
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