pub enum Bm25Error {
InvalidK1,
InvalidB,
EmptyCorpus,
NoTokens,
}Expand description
A rejected scorer configuration.
Variants§
InvalidK1
k1 was negative or not a number.
InvalidB
b was outside 0.0..=1.0 or not a number.
EmptyCorpus
The corpus had no documents, so avgdl is undefined.
NoTokens
The corpus had no tokens, so avgdl is undefined.
Trait Implementations§
impl Copy for Bm25Error
impl Eq for Bm25Error
Source§impl Error for Bm25Error
impl Error for Bm25Error
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<Bm25Error> for IndexError
impl From<Bm25Error> for IndexError
impl StructuralPartialEq for Bm25Error
Auto Trait Implementations§
impl Freeze for Bm25Error
impl RefUnwindSafe for Bm25Error
impl Send for Bm25Error
impl Sync for Bm25Error
impl Unpin for Bm25Error
impl UnsafeUnpin for Bm25Error
impl UnwindSafe for Bm25Error
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