pub enum ObjectiveError {
NoCandidates,
NoMatch(String),
InvalidConfig(String),
NotFound(String),
Scoring(String),
Fold(FoldError),
}Expand description
Objective function error type
Variants§
NoCandidates
No candidates to select from
NoMatch(String)
No candidate met the selection criteria
InvalidConfig(String)
Invalid objective configuration
NotFound(String)
Objective not found in registry
Scoring(String)
Scoring error
Fold(FoldError)
Fold error
Trait Implementations§
Source§impl Debug for ObjectiveError
impl Debug for ObjectiveError
Source§impl Display for ObjectiveError
impl Display for ObjectiveError
Source§impl Error for ObjectiveError
impl Error for ObjectiveError
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()
Auto Trait Implementations§
impl Freeze for ObjectiveError
impl !RefUnwindSafe for ObjectiveError
impl Send for ObjectiveError
impl Sync for ObjectiveError
impl Unpin for ObjectiveError
impl UnsafeUnpin for ObjectiveError
impl !UnwindSafe for ObjectiveError
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