pub enum SearchSpecError {
NoEvaluations,
NoBatch,
BatchTooLarge {
batch_size: usize,
},
MissingObjective {
algorithm: &'static str,
},
UnusedObjective,
Setting {
key: &'static str,
value: String,
expected: String,
},
}Expand description
A search spec that cannot run.
Variants§
NoEvaluations
A budget of 0 evaluations.
NoBatch
A batch size of 0.
BatchTooLarge
A batch size past MAX_CONFIGS.
MissingObjective
A random search, hill climb or genetic algorithm with no objective.
UnusedObjective
An objective given to a Pattern Space Exploration. Pattern Space Exploration uses no objective.
Setting
Setting key set to value, where it accepts expected.
Trait Implementations§
Source§impl Clone for SearchSpecError
impl Clone for SearchSpecError
Source§impl Debug for SearchSpecError
impl Debug for SearchSpecError
Source§impl Display for SearchSpecError
impl Display for SearchSpecError
impl Eq for SearchSpecError
Source§impl Error for SearchSpecError
impl Error for SearchSpecError
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 SearchSpecError
impl PartialEq for SearchSpecError
impl StructuralPartialEq for SearchSpecError
Auto Trait Implementations§
impl Freeze for SearchSpecError
impl RefUnwindSafe for SearchSpecError
impl Send for SearchSpecError
impl Sync for SearchSpecError
impl Unpin for SearchSpecError
impl UnsafeUnpin for SearchSpecError
impl UnwindSafe for SearchSpecError
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