pub enum VectorDimError {
WrongLength {
expected: usize,
actual: usize,
},
NonNumericElement {
index: usize,
},
NotAVector {
actual: &'static str,
},
TokenWrongLength {
token: usize,
expected: usize,
actual: usize,
},
TokenNonNumericElement {
token: usize,
index: usize,
},
TokenNotAVector {
token: usize,
actual: &'static str,
},
NotATokenList {
actual: &'static str,
},
}Expand description
Why a value cannot be stored in a declared VECTOR(dim) or multi-vector column.
Produced by DataType::check_vector_dims and check_dense_vector_value.
Messages carry the declared and actual lengths so write-path errors are
actionable; callers prefix the property name and declared type.
Variants§
WrongLength
The vector has the wrong number of elements.
Fields
NonNumericElement
A list element is not Int or Float.
NotAVector
The value is not a vector or list at all.
TokenWrongLength
A multi-vector token has the wrong number of elements.
Fields
TokenNonNumericElement
A multi-vector token contains a non-numeric element.
Fields
TokenNotAVector
A multi-vector token is not a vector or list.
Fields
NotATokenList
The value for a multi-vector column is not a list of tokens.
Trait Implementations§
Source§impl Clone for VectorDimError
impl Clone for VectorDimError
Source§fn clone(&self) -> VectorDimError
fn clone(&self) -> VectorDimError
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 moreSource§impl Debug for VectorDimError
impl Debug for VectorDimError
Source§impl Display for VectorDimError
impl Display for VectorDimError
impl Eq for VectorDimError
Source§impl Error for VectorDimError
impl Error for VectorDimError
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 VectorDimError
impl PartialEq for VectorDimError
Source§fn eq(&self, other: &VectorDimError) -> bool
fn eq(&self, other: &VectorDimError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VectorDimError
Auto Trait Implementations§
impl Freeze for VectorDimError
impl RefUnwindSafe for VectorDimError
impl Send for VectorDimError
impl Sync for VectorDimError
impl Unpin for VectorDimError
impl UnsafeUnpin for VectorDimError
impl UnwindSafe for VectorDimError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more