pub trait MotorExt {
// Required methods
fn dist(
&mut self,
dist: impl Into<Distance>,
speed: impl Into<Speed>,
) -> Result<()>;
fn to_pos(
&mut self,
position: impl Into<Distance>,
speed: impl Into<Speed>,
) -> Result<()>;
fn time(
&mut self,
duration: Duration,
speed: impl Into<Speed>,
) -> Result<()>;
}Required Methods§
Sourcefn dist(
&mut self,
dist: impl Into<Distance>,
speed: impl Into<Speed>,
) -> Result<()>
fn dist( &mut self, dist: impl Into<Distance>, speed: impl Into<Speed>, ) -> Result<()>
Spin for a set distance (relative)
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.