pub enum RefineError {
InvalidHeadDims {
head_dims: usize,
query_len: usize,
},
DimensionMismatch {
expected: usize,
got: usize,
},
}Expand description
Errors from refinement operations.
Variants§
InvalidHeadDims
head_dims must be less than query.len() for tail refinement.
Fields
DimensionMismatch
Vector dimensions must match.
Trait Implementations§
Source§impl Clone for RefineError
impl Clone for RefineError
Source§fn clone(&self) -> RefineError
fn clone(&self) -> RefineError
Returns a duplicate of the value. Read more
1.0.0 · 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 RefineError
impl Debug for RefineError
Source§impl Display for RefineError
impl Display for RefineError
Source§impl Error for RefineError
impl Error for RefineError
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 RefineError
impl PartialEq for RefineError
impl StructuralPartialEq for RefineError
Auto Trait Implementations§
impl Freeze for RefineError
impl RefUnwindSafe for RefineError
impl Send for RefineError
impl Sync for RefineError
impl Unpin for RefineError
impl UnwindSafe for RefineError
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