pub enum NeuronType {
Excitatory,
Inhibitory,
Sensory,
Motor,
Modulatory,
}Expand description
Type of neuron (affects connectivity and dynamics)
Variants§
Excitatory
Excitatory pyramidal neuron (glutamatergic)
Inhibitory
Inhibitory interneuron (GABAergic)
Sensory
Sensory input neuron
Motor
Motor output neuron
Modulatory
Modulatory neuron (dopaminergic, etc.)
Implementations§
Source§impl NeuronType
impl NeuronType
Sourcepub fn is_excitatory(&self) -> bool
pub fn is_excitatory(&self) -> bool
Whether this neuron type produces excitatory output
Sourcepub fn cortical_ratio(&self) -> f64
pub fn cortical_ratio(&self) -> f64
Typical ratio in cortex (80% excitatory, 20% inhibitory)
Trait Implementations§
Source§impl Clone for NeuronType
impl Clone for NeuronType
Source§fn clone(&self) -> NeuronType
fn clone(&self) -> NeuronType
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 NeuronType
impl Debug for NeuronType
Source§impl<'de> Deserialize<'de> for NeuronType
impl<'de> Deserialize<'de> for NeuronType
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 Hash for NeuronType
impl Hash for NeuronType
Source§impl PartialEq for NeuronType
impl PartialEq for NeuronType
Source§impl Serialize for NeuronType
impl Serialize for NeuronType
impl Copy for NeuronType
impl Eq for NeuronType
impl StructuralPartialEq for NeuronType
Auto Trait Implementations§
impl Freeze for NeuronType
impl RefUnwindSafe for NeuronType
impl Send for NeuronType
impl Sync for NeuronType
impl Unpin for NeuronType
impl UnwindSafe for NeuronType
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