Runnable

Trait Runnable 

Source
pub trait Runnable: FromParams + Sized {
    type State: Clone;

    // Required method
    fn step(&mut self) -> Option<&Self::State>;
}
Expand description

A process to be ran that produces state information after each step

Required Associated Types§

Source

type State: Clone

Serializable state information

Required Methods§

Source

fn step(&mut self) -> Option<&Self::State>

Make progress on the algorithm and return state information.

Return None once the algorithm is complete.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<X, CS, OS, PP, const N: usize> Runnable for RunPathPlanner<X, CS, OS, PP, N>
where X: Scalar, CS: CSpace<X, N>, OS: ObstacleSpace<X, CS, N>, PP: PathPlanner<X, CS, OS, N>, PP::Params: Clone, PP::State: Clone,

Source§

type State = <PP as PathPlanner<X, CS, OS, N>>::State