pub enum NeuronLocation {
Input(usize),
Hidden(usize),
Output(usize),
}
Expand description
A pseudo-pointer of sorts used to make structural conversions very fast and easy to write.
Variants§
Input(usize)
Points to a neuron in the input layer at contained index.
Hidden(usize)
Points to a neuron in the hidden layer at contained index.
Output(usize)
Points to a neuron in the output layer at contained index.
Implementations§
Source§impl NeuronLocation
impl NeuronLocation
Trait Implementations§
Source§impl Clone for NeuronLocation
impl Clone for NeuronLocation
Source§fn clone(&self) -> NeuronLocation
fn clone(&self) -> NeuronLocation
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 NeuronLocation
impl Debug for NeuronLocation
Source§impl<'de> Deserialize<'de> for NeuronLocation
impl<'de> Deserialize<'de> for NeuronLocation
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 From<&NeuronLocation> for ActivationScope
impl From<&NeuronLocation> for ActivationScope
Source§fn from(value: &NeuronLocation) -> Self
fn from(value: &NeuronLocation) -> Self
Converts to this type from the input type.
Source§impl Hash for NeuronLocation
impl Hash for NeuronLocation
Source§impl PartialEq for NeuronLocation
impl PartialEq for NeuronLocation
Source§impl Serialize for NeuronLocation
impl Serialize for NeuronLocation
impl Copy for NeuronLocation
impl Eq for NeuronLocation
impl StructuralPartialEq for NeuronLocation
Auto Trait Implementations§
impl Freeze for NeuronLocation
impl RefUnwindSafe for NeuronLocation
impl Send for NeuronLocation
impl Sync for NeuronLocation
impl Unpin for NeuronLocation
impl UnwindSafe for NeuronLocation
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