[][src]Struct radiate::models::neat::edge::Edge

pub struct Edge {
    pub src: i32,
    pub dst: i32,
    pub innov: i32,
    pub weight: f64,
    pub active: bool,
}

Edge is a connection between two nodes in the graph

Src is the innovation number of the node sending input through the network dst is the innovation number of the node receiving the input from the src neuron innov is the edge's unique innovation number for crossover and mutation weight is the weight of the connection active keeps track of if this edge is active or not, meaning it will be used while feeding data through the network

Fields

src: i32dst: i32innov: i32weight: f64active: bool

Methods

impl Edge[src]

pub fn new(src: i32, dst: i32, innov: i32, weight: f64, active: bool) -> Self[src]

Trait Implementations

impl Clone for Edge[src]

impl Debug for Edge[src]

impl PartialEq<Edge> for Edge[src]

impl StructuralPartialEq for Edge[src]

Auto Trait Implementations

impl RefUnwindSafe for Edge

impl Send for Edge

impl Sync for Edge

impl Unpin for Edge

impl UnwindSafe for Edge

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,