pub enum GeneticError {
}
Expand description
Represents errors that can occur in genetic algorithm operations.
Variants§
Breeding(String)
Error that occurs when a breeding operation fails.
Development(String)
Error that occurs when a phenotype cannot be developed within constraints.
Evolution(String)
Error that occurs when an evolution process fails.
Configuration(String)
Error that occurs when an invalid configuration is provided.
EmptyPopulation
Error that occurs when an empty population is encountered.
FitnessCalculation(String)
Error that occurs when a fitness calculation fails.
Selection(String)
Error that occurs when a selection operation fails.
RandomGeneration(String)
Error that occurs when a random number generation fails.
OutOfBounds(String)
Error that occurs when a phenotype is outside of valid bounds.
MaxAttemptsReached(String)
Error that occurs when a maximum number of attempts is reached.
InvalidNumericValue(String)
Error that occurs when NaN or infinity values are encountered.
Io(Error)
Error that occurs when an I/O operation fails.
Other(String)
A generic error with a custom message.
Trait Implementations§
Source§impl Debug for GeneticError
impl Debug for GeneticError
Source§impl Display for GeneticError
impl Display for GeneticError
Source§impl Error for GeneticError
impl Error for GeneticError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for GeneticError
impl !RefUnwindSafe for GeneticError
impl Send for GeneticError
impl Sync for GeneticError
impl Unpin for GeneticError
impl !UnwindSafe for GeneticError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more