[][src]Function accel_stepper::func_device

pub fn func_device<F, B, T>(
    forward: F,
    backward: B
) -> impl Device<Error = Void> where
    F: FnMut() -> T,
    B: FnMut() -> T, 

A Device which will call one function for a forward step, and another for a backward one.

See fallible_func_device() for a version which accepts fallible callbacks.