Skip to main content

Steering

Trait Steering 

Source
pub trait Steering<Sp: StateSpace> {
    // Required method
    fn steer(
        &self,
        space: &Sp,
        from: &Sp::State,
        toward: &Sp::State,
    ) -> Sp::State;
}
Expand description

Extends a state toward a target state.

Required Methods§

Source

fn steer(&self, space: &Sp, from: &Sp::State, toward: &Sp::State) -> Sp::State

The state reached when moving from from toward toward.

May stop short of toward; the result must be connectable from from by StateSpace::interpolate, since that segment is what gets validity-checked.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§