pub struct StepLimits {
pub min_steps: i64,
pub max_steps: i64,
pub policy: LimitPolicy,
}Expand description
Soft limits converted to steps (for runtime use).
Fields§
§min_steps: i64Minimum position in steps.
max_steps: i64Maximum position in steps.
policy: LimitPolicyLimit policy.
Implementations§
Source§impl StepLimits
impl StepLimits
Sourcepub fn from_soft_limits(soft: &SoftLimits, steps_per_degree: f32) -> Self
pub fn from_soft_limits(soft: &SoftLimits, steps_per_degree: f32) -> Self
Create step limits from soft limits and steps per degree.
Trait Implementations§
Source§impl Clone for StepLimits
impl Clone for StepLimits
Source§fn clone(&self) -> StepLimits
fn clone(&self) -> StepLimits
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StepLimits
impl RefUnwindSafe for StepLimits
impl Send for StepLimits
impl Sync for StepLimits
impl Unpin for StepLimits
impl UnwindSafe for StepLimits
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more