Struct cppn::substrate::Substrate
[−]
[src]
pub struct Substrate<P, T> where
P: Position, { /* fields omitted */ }
Methods
impl<P, T> Substrate<P, T> where
P: Position,
[src]
P: Position,
fn new() -> Self
[src]
fn layers(&self) -> &[Layer<P, T>]
[src]
fn add_layer(&mut self, layer: Layer<P, T>) -> usize
[src]
fn add_layer_link(
&mut self,
from_layer: usize,
to_layer: usize,
max_distance_square: Option<f64>
)
[src]
&mut self,
from_layer: usize,
to_layer: usize,
max_distance_square: Option<f64>
)
fn each_link<'a, N, L, EXTID, F>(
&'a self,
cppn: &'a mut Cppn<'a, N, L, EXTID>,
callback: &mut F
) where
N: CppnNodeType,
L: Copy + Debug + Send + Sized + Into<f64> + 'a,
EXTID: Copy + Debug + Send + Sized + Ord + 'a,
F: FnMut(Link<'a, P, T>),
[src]
&'a self,
cppn: &'a mut Cppn<'a, N, L, EXTID>,
callback: &mut F
) where
N: CppnNodeType,
L: Copy + Debug + Send + Sized + Into<f64> + 'a,
EXTID: Copy + Debug + Send + Sized + Ord + 'a,
F: FnMut(Link<'a, P, T>),
Iterate over all produced links of Cppn.
Trait Implementations
impl<P: Clone, T: Clone> Clone for Substrate<P, T> where
P: Position,
[src]
P: Position,
fn clone(&self) -> Substrate<P, T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<P: Debug, T: Debug> Debug for Substrate<P, T> where
P: Position,
[src]
P: Position,