pub enum ScoringSpecError {
NoTerms,
NonFiniteWeight,
NegativeWeight,
NonPositiveHalfLife,
InvalidMinFactor,
TimestampTermNotAllowed,
UnsupportedDecayFeature,
}Variants§
NoTerms
NonFiniteWeight
NegativeWeight
NonPositiveHalfLife
InvalidMinFactor
TimestampTermNotAllowed
A timestamp feature carries no rank value of its own.
UnsupportedDecayFeature
Only HopDistance and TimestampProperty define an age to decay.
Trait Implementations§
Source§impl Clone for ScoringSpecError
impl Clone for ScoringSpecError
impl Copy for ScoringSpecError
Source§impl Debug for ScoringSpecError
impl Debug for ScoringSpecError
Source§impl Display for ScoringSpecError
impl Display for ScoringSpecError
impl Eq for ScoringSpecError
Source§impl Error for ScoringSpecError
impl Error for ScoringSpecError
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 ScoringSpecError
impl PartialEq for ScoringSpecError
impl StructuralPartialEq for ScoringSpecError
Auto Trait Implementations§
impl Freeze for ScoringSpecError
impl RefUnwindSafe for ScoringSpecError
impl Send for ScoringSpecError
impl Sync for ScoringSpecError
impl Unpin for ScoringSpecError
impl UnsafeUnpin for ScoringSpecError
impl UnwindSafe for ScoringSpecError
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