pub struct WiringConfig {Show 17 fields
pub units: usize,
pub adjacency_matrix: Option<Vec<Vec<i32>>>,
pub sensory_adjacency_matrix: Option<Vec<Vec<i32>>>,
pub input_dim: Option<usize>,
pub output_dim: Option<usize>,
pub erev_init_seed: Option<u64>,
pub self_connections: Option<bool>,
pub num_inter_neurons: Option<usize>,
pub num_command_neurons: Option<usize>,
pub num_motor_neurons: Option<usize>,
pub sensory_fanout: Option<usize>,
pub inter_fanout: Option<usize>,
pub recurrent_command_synapses: Option<usize>,
pub motor_fanin: Option<usize>,
pub seed: Option<u64>,
pub sparsity_level: Option<f64>,
pub random_seed: Option<u64>,
}Expand description
Configuration struct for serialization/deserialization of wiring structures
Fields§
§units: usize§adjacency_matrix: Option<Vec<Vec<i32>>>§sensory_adjacency_matrix: Option<Vec<Vec<i32>>>§input_dim: Option<usize>§output_dim: Option<usize>§erev_init_seed: Option<u64>§self_connections: Option<bool>§num_inter_neurons: Option<usize>§num_command_neurons: Option<usize>§num_motor_neurons: Option<usize>§sensory_fanout: Option<usize>§inter_fanout: Option<usize>§recurrent_command_synapses: Option<usize>§motor_fanin: Option<usize>§seed: Option<u64>§sparsity_level: Option<f64>§random_seed: Option<u64>Trait Implementations§
Source§impl Clone for WiringConfig
impl Clone for WiringConfig
Source§fn clone(&self) -> WiringConfig
fn clone(&self) -> WiringConfig
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 WiringConfig
impl Debug for WiringConfig
Source§impl<'de> Deserialize<'de> for WiringConfig
impl<'de> Deserialize<'de> for WiringConfig
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 WiringConfig
impl RefUnwindSafe for WiringConfig
impl Send for WiringConfig
impl Sync for WiringConfig
impl Unpin for WiringConfig
impl UnwindSafe for WiringConfig
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 more