pub enum MotorCorticalUnit {
RotaryMotor,
PositionalServo,
Shock,
MiscData,
}Variants§
RotaryMotor
Free spinning motor.
PositionalServo
Servo Position, defined by min / max distances
Shock
Gaze control, where the first 2 numbers are the XY center, and the last number is the relative size
MiscData
Miscellaneous motor that does not fit existing templates.
Implementations§
Source§impl MotorCorticalUnit
impl MotorCorticalUnit
Sourcepub const fn get_cortical_area_types_array_for_rotary_motor(
frame_change_handling: FrameChangeHandling,
percentage_neuron_positioning: PercentageNeuronPositioning,
) -> [CorticalAreaType; 1]
pub const fn get_cortical_area_types_array_for_rotary_motor( frame_change_handling: FrameChangeHandling, percentage_neuron_positioning: PercentageNeuronPositioning, ) -> [CorticalAreaType; 1]
Get cortical area types array for Rotary Motor.
Sourcepub const fn get_cortical_ids_array_for_rotary_motor(
frame_change_handling: FrameChangeHandling,
percentage_neuron_positioning: PercentageNeuronPositioning,
cortical_group_index: CorticalGroupIndex,
) -> [CorticalID; 1]
pub const fn get_cortical_ids_array_for_rotary_motor( frame_change_handling: FrameChangeHandling, percentage_neuron_positioning: PercentageNeuronPositioning, cortical_group_index: CorticalGroupIndex, ) -> [CorticalID; 1]
Get cortical IDs array for Rotary Motor.
Sourcepub const fn get_cortical_area_types_array_for_positional_servo(
frame_change_handling: FrameChangeHandling,
percentage_neuron_positioning: PercentageNeuronPositioning,
) -> [CorticalAreaType; 1]
pub const fn get_cortical_area_types_array_for_positional_servo( frame_change_handling: FrameChangeHandling, percentage_neuron_positioning: PercentageNeuronPositioning, ) -> [CorticalAreaType; 1]
Get cortical area types array for Positional Servo.
Sourcepub const fn get_cortical_ids_array_for_positional_servo(
frame_change_handling: FrameChangeHandling,
percentage_neuron_positioning: PercentageNeuronPositioning,
cortical_group_index: CorticalGroupIndex,
) -> [CorticalID; 1]
pub const fn get_cortical_ids_array_for_positional_servo( frame_change_handling: FrameChangeHandling, percentage_neuron_positioning: PercentageNeuronPositioning, cortical_group_index: CorticalGroupIndex, ) -> [CorticalID; 1]
Get cortical IDs array for Positional Servo.
Sourcepub const fn get_cortical_area_types_array_for_gaze_control(
frame_change_handling: FrameChangeHandling,
percentage_neuron_positioning: PercentageNeuronPositioning,
) -> [CorticalAreaType; 2]
pub const fn get_cortical_area_types_array_for_gaze_control( frame_change_handling: FrameChangeHandling, percentage_neuron_positioning: PercentageNeuronPositioning, ) -> [CorticalAreaType; 2]
Get cortical area types array for Gaze Control.
Sourcepub const fn get_cortical_ids_array_for_gaze_control(
frame_change_handling: FrameChangeHandling,
percentage_neuron_positioning: PercentageNeuronPositioning,
cortical_group_index: CorticalGroupIndex,
) -> [CorticalID; 2]
pub const fn get_cortical_ids_array_for_gaze_control( frame_change_handling: FrameChangeHandling, percentage_neuron_positioning: PercentageNeuronPositioning, cortical_group_index: CorticalGroupIndex, ) -> [CorticalID; 2]
Get cortical IDs array for Gaze Control.
Sourcepub const fn get_cortical_area_types_array_for_miscellaneous(
frame_change_handling: FrameChangeHandling,
) -> [CorticalAreaType; 1]
pub const fn get_cortical_area_types_array_for_miscellaneous( frame_change_handling: FrameChangeHandling, ) -> [CorticalAreaType; 1]
Get cortical area types array for Miscellaneous Motor.
Sourcepub const fn get_cortical_ids_array_for_miscellaneous(
frame_change_handling: FrameChangeHandling,
cortical_group_index: CorticalGroupIndex,
) -> [CorticalID; 1]
pub const fn get_cortical_ids_array_for_miscellaneous( frame_change_handling: FrameChangeHandling, cortical_group_index: CorticalGroupIndex, ) -> [CorticalID; 1]
Get cortical IDs array for Miscellaneous Motor.
pub const fn get_snake_case_name(&self) -> &'static str
Sourcepub fn from_snake_case_name(name: &str) -> Option<MotorCorticalUnit>
pub fn from_snake_case_name(name: &str) -> Option<MotorCorticalUnit>
Sourcepub const fn list_all() -> &'static [MotorCorticalUnit]
pub const fn list_all() -> &'static [MotorCorticalUnit]
Returns all available motor cortical unit types. This is useful for enumerating all possible motor types in the system.
Sourcepub const fn get_friendly_name(&self) -> &'static str
pub const fn get_friendly_name(&self) -> &'static str
Returns the friendly (human-readable) name for this motor cortical unit type.
Sourcepub const fn get_cortical_id_unit_reference(&self) -> [u8; 3]
pub const fn get_cortical_id_unit_reference(&self) -> [u8; 3]
Returns the 3-byte cortical ID unit reference for this type.
Sourcepub const fn get_number_cortical_areas(&self) -> usize
pub const fn get_number_cortical_areas(&self) -> usize
Returns the number of cortical areas this type creates.
Sourcepub fn get_unit_default_topology(&self) -> HashMap<usize, UnitTopology>
pub fn get_unit_default_topology(&self) -> HashMap<usize, UnitTopology>
Returns the default topology for all units of this cortical type.
Trait Implementations§
Source§impl Clone for MotorCorticalUnit
impl Clone for MotorCorticalUnit
Source§fn clone(&self) -> MotorCorticalUnit
fn clone(&self) -> MotorCorticalUnit
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MotorCorticalUnit
impl Debug for MotorCorticalUnit
Source§impl<'de> Deserialize<'de> for MotorCorticalUnit
impl<'de> Deserialize<'de> for MotorCorticalUnit
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>,
Source§impl Display for MotorCorticalUnit
impl Display for MotorCorticalUnit
Source§impl Hash for MotorCorticalUnit
impl Hash for MotorCorticalUnit
Source§impl PartialEq for MotorCorticalUnit
impl PartialEq for MotorCorticalUnit
Source§impl Serialize for MotorCorticalUnit
impl Serialize for MotorCorticalUnit
impl Copy for MotorCorticalUnit
impl Eq for MotorCorticalUnit
impl StructuralPartialEq for MotorCorticalUnit
Auto Trait Implementations§
impl Freeze for MotorCorticalUnit
impl RefUnwindSafe for MotorCorticalUnit
impl Send for MotorCorticalUnit
impl Sync for MotorCorticalUnit
impl Unpin for MotorCorticalUnit
impl UnwindSafe for MotorCorticalUnit
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
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>
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>
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 more