Struct genetic_planner::genetic_planner::Action [] [src]

pub struct Action<T> where T: State + Clone + Send + Sync + 'static {
    pub action: fn(state: T) -> Option<T>,
    pub name: String,
}

Contains a function applicable to T and a name

Fields

action: fn(state: T) -> Option<T> name: String

Trait Implementations

impl<T: Clone> Clone for Action<T> where T: State + Clone + Send + Sync + 'static
[src]

fn clone(&self) -> Action<T>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<T> Rand for Action<T> where T: State + Clone
[src]

fn rand<R: Rng>(_: &mut R) -> Action<T>

Generates a random instance of this type using the specified source of randomness. Read more

impl<T> PartialEq for Action<T> where T: State + Clone + Send + Sync + 'static
[src]

fn eq(&self, other: &Action<T>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.