Struct evco::gp::Individual [] [src]

pub struct Individual<T> where T: Tree {
    pub tree: BoxTree<T>,
    // some fields omitted
}

A genetic individual to mate and mutate in a Genetic Program.

Wraps around a BoxTree and caches useful data.

Fields

The contained GP tree, starting at the head.

Methods

impl<T> Individual<T> where T: Tree
[src]

Generate a new Tree and individual.

Create from a Tree.

Get cached number of nodes in tree.

Update cached metadata such at the number of nodes in the tree.

Trait Implementations

impl<T: Debug> Debug for Individual<T> where T: Tree
[src]

Formats the value using the given formatter.

impl<T: Clone> Clone for Individual<T> where T: Tree
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Display for Individual<T> where T: Tree + Display
[src]

Formats the value using the given formatter.