pub struct Synapse {
pub target: u16,
pub weight: f32,
}Expand description
A single sparse synaptic connection.
Fields§
§target: u16Target neuron index (column in the weight matrix).
weight: f32Synaptic weight strength.
Trait Implementations§
impl Copy for Synapse
Source§impl<'de> Deserialize<'de> for Synapse
impl<'de> Deserialize<'de> for Synapse
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 Synapse
impl RefUnwindSafe for Synapse
impl Send for Synapse
impl Sync for Synapse
impl Unpin for Synapse
impl UnsafeUnpin for Synapse
impl UnwindSafe for Synapse
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