[][src]Trait neat_rs::GlobalNeatCounter

pub trait GlobalNeatCounter {
    fn try_adding_connection(&mut self, from: usize, to: usize) -> Option<usize>;
fn get_new_node(&mut self) -> usize; }

Trait required by neat struct

Required methods

fn try_adding_connection(&mut self, from: usize, to: usize) -> Option<usize>

returns the innovation number of new connection if a connection can be added, otherwise returns None

fn get_new_node(&mut self) -> usize

returns the index of new node

Loading content...

Implementors

impl<T: Gene> GlobalNeatCounter for Neat<T>[src]

Loading content...