#[non_exhaustive]pub enum SanghaError {
InvalidNetwork(String),
InvalidPopulation(String),
SimulationFailed(String),
ComputationError(String),
}Expand description
Errors that can occur in sangha operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidNetwork(String)
A network structure was invalid.
InvalidPopulation(String)
A population parameter was invalid.
SimulationFailed(String)
A simulation failed to converge or complete.
ComputationError(String)
A general computation error.
Trait Implementations§
Source§impl Clone for SanghaError
impl Clone for SanghaError
Source§fn clone(&self) -> SanghaError
fn clone(&self) -> SanghaError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SanghaError
impl Debug for SanghaError
Source§impl<'de> Deserialize<'de> for SanghaError
impl<'de> Deserialize<'de> for SanghaError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SanghaError
impl Display for SanghaError
Source§impl Error for SanghaError
impl Error for SanghaError
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 SanghaError
impl RefUnwindSafe for SanghaError
impl Send for SanghaError
impl Sync for SanghaError
impl Unpin for SanghaError
impl UnsafeUnpin for SanghaError
impl UnwindSafe for SanghaError
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