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