pub struct NeuronState {
pub membrane_potential: f64,
pub refractory: bool,
pub refractory_remaining: Duration,
pub adaptation: f64,
pub input_current: f64,
pub time_since_spike: Duration,
}Expand description
Current state of a neuron
Fields§
§membrane_potential: f64Membrane potential (mV)
refractory: boolWhether neuron is in refractory period
refractory_remaining: DurationTime remaining in refractory period
adaptation: f64Adaptation current (for adaptive neurons)
input_current: f64Input current accumulator
time_since_spike: DurationTime since last spike
Trait Implementations§
Source§impl Clone for NeuronState
impl Clone for NeuronState
Source§fn clone(&self) -> NeuronState
fn clone(&self) -> NeuronState
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 NeuronState
impl Debug for NeuronState
Source§impl Default for NeuronState
impl Default for NeuronState
Source§impl<'de> Deserialize<'de> for NeuronState
impl<'de> Deserialize<'de> for NeuronState
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
Auto Trait Implementations§
impl Freeze for NeuronState
impl RefUnwindSafe for NeuronState
impl Send for NeuronState
impl Sync for NeuronState
impl Unpin for NeuronState
impl UnwindSafe for NeuronState
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