pub enum NeuralDynamicsError {
Show 16 variants
InvalidParameter {
parameter: String,
value: f64,
reason: String,
},
InvalidNeuronIndex {
index: usize,
max: usize,
},
InvalidPopulationIndex {
index: usize,
max: usize,
},
InvalidProjectionIndex {
index: usize,
max: usize,
},
SizeMismatch {
expected: usize,
actual: usize,
},
EmptyPopulation,
EmptyNetwork,
ConnectivityError {
reason: String,
},
SimulationError {
reason: String,
},
NonFiniteValue {
location: String,
value: f64,
},
IntegrationError {
reason: String,
},
RecordingError {
reason: String,
},
AnalysisError {
reason: String,
},
IoError(String),
HodgkinHuxleyError(String),
SynapseError(String),
}Expand description
Errors that can occur in neural dynamics simulations.
Variants§
InvalidParameter
Invalid parameter value
InvalidNeuronIndex
Invalid neuron index
InvalidPopulationIndex
Invalid population index
InvalidProjectionIndex
Invalid projection index
SizeMismatch
Population size mismatch
EmptyPopulation
Empty population
EmptyNetwork
Empty network
ConnectivityError
Connectivity error
SimulationError
Simulation error
NonFiniteValue
Non-finite value encountered
IntegrationError
Integration error
RecordingError
Recording error
AnalysisError
Analysis error
IoError(String)
IO error
HodgkinHuxleyError(String)
Propagated error from hodgkin-huxley
SynapseError(String)
Propagated error from synapse-models
Trait Implementations§
Source§impl Clone for NeuralDynamicsError
impl Clone for NeuralDynamicsError
Source§fn clone(&self) -> NeuralDynamicsError
fn clone(&self) -> NeuralDynamicsError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NeuralDynamicsError
impl Debug for NeuralDynamicsError
Source§impl Display for NeuralDynamicsError
impl Display for NeuralDynamicsError
Source§impl Error for NeuralDynamicsError
impl Error for NeuralDynamicsError
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 From<Error> for NeuralDynamicsError
impl From<Error> for NeuralDynamicsError
Source§impl From<HHError> for NeuralDynamicsError
impl From<HHError> for NeuralDynamicsError
Source§impl From<SynapseError> for NeuralDynamicsError
impl From<SynapseError> for NeuralDynamicsError
Source§fn from(err: SynapseError) -> Self
fn from(err: SynapseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NeuralDynamicsError
impl RefUnwindSafe for NeuralDynamicsError
impl Send for NeuralDynamicsError
impl Sync for NeuralDynamicsError
impl Unpin for NeuralDynamicsError
impl UnsafeUnpin for NeuralDynamicsError
impl UnwindSafe for NeuralDynamicsError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.