pub enum EcologyError {
EmptyTraditions,
MatrixDimensionMismatch {
expected: usize,
got: usize,
},
DialDimensionMismatch {
name: String,
expected: usize,
got: usize,
},
InvalidGrowthRate {
name: String,
value: f64,
},
NegativePopulation {
name: String,
value: f64,
},
InvalidCarryingCapacity {
name: String,
value: f64,
},
InvalidTimeStep {
value: f64,
},
Diverged {
step: usize,
},
NoEquilibriumFound {
iterations: usize,
},
}Expand description
Errors that can occur in ecological simulations.
Variants§
EmptyTraditions
MatrixDimensionMismatch
DialDimensionMismatch
InvalidGrowthRate
NegativePopulation
InvalidCarryingCapacity
InvalidTimeStep
Diverged
NoEquilibriumFound
Trait Implementations§
Source§impl Debug for EcologyError
impl Debug for EcologyError
Source§impl Display for EcologyError
impl Display for EcologyError
Source§impl Error for EcologyError
impl Error for EcologyError
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()
Auto Trait Implementations§
impl Freeze for EcologyError
impl RefUnwindSafe for EcologyError
impl Send for EcologyError
impl Sync for EcologyError
impl Unpin for EcologyError
impl UnsafeUnpin for EcologyError
impl UnwindSafe for EcologyError
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