pub enum AdaptiveEfError {
ZeroK,
KExceedsRows {
k: usize,
rows: usize,
},
ExplicitBelowK {
k: usize,
ef: usize,
},
ExplicitExceedsRows {
ef: usize,
rows: usize,
},
ArithmeticOverflow,
}Expand description
Typed rejection while resolving an adaptive or explicit ef.
Variants§
ZeroK
Top-k must request at least one result.
KExceedsRows
Top-k exceeded the graph’s row count.
ExplicitBelowK
An explicit override was narrower than top-k.
ExplicitExceedsRows
An explicit override exceeded the graph’s row count.
ArithmeticOverflow
Adaptive multiplier arithmetic overflowed usize.
Trait Implementations§
Source§impl Clone for AdaptiveEfError
impl Clone for AdaptiveEfError
impl Copy for AdaptiveEfError
Source§impl Debug for AdaptiveEfError
impl Debug for AdaptiveEfError
Source§impl Display for AdaptiveEfError
impl Display for AdaptiveEfError
impl Eq for AdaptiveEfError
Source§impl Error for AdaptiveEfError
impl Error for AdaptiveEfError
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 From<AdaptiveEfError> for GraphSearchError
impl From<AdaptiveEfError> for GraphSearchError
Source§fn from(error: AdaptiveEfError) -> Self
fn from(error: AdaptiveEfError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AdaptiveEfError
impl PartialEq for AdaptiveEfError
impl StructuralPartialEq for AdaptiveEfError
Auto Trait Implementations§
impl Freeze for AdaptiveEfError
impl RefUnwindSafe for AdaptiveEfError
impl Send for AdaptiveEfError
impl Sync for AdaptiveEfError
impl Unpin for AdaptiveEfError
impl UnsafeUnpin for AdaptiveEfError
impl UnwindSafe for AdaptiveEfError
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