pub struct PrecisionState {
pub deadband: f64,
pub funnel_pos: f64,
pub snap_imminent: bool,
}Expand description
Precision state tracks the deadband funnel — how tightly a value is converging toward its target.
Fields§
§deadband: f64Current deadband width (must be > 0 and < covering_radius)
funnel_pos: f64Position in funnel: 0 = wide open, 1 = snap
snap_imminent: boolWhether we’re within the closing threshold
Implementations§
Trait Implementations§
Source§impl Clone for PrecisionState
impl Clone for PrecisionState
Source§fn clone(&self) -> PrecisionState
fn clone(&self) -> PrecisionState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrecisionState
impl Debug for PrecisionState
Source§impl<'de> Deserialize<'de> for PrecisionState
impl<'de> Deserialize<'de> for PrecisionState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PrecisionState
impl PartialEq for PrecisionState
Source§fn eq(&self, other: &PrecisionState) -> bool
fn eq(&self, other: &PrecisionState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PrecisionState
impl Serialize for PrecisionState
impl StructuralPartialEq for PrecisionState
Auto Trait Implementations§
impl Freeze for PrecisionState
impl RefUnwindSafe for PrecisionState
impl Send for PrecisionState
impl Sync for PrecisionState
impl Unpin for PrecisionState
impl UnsafeUnpin for PrecisionState
impl UnwindSafe for PrecisionState
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