Struct HydrologicalHysteresisGate
pub struct HydrologicalHysteresisGate {
pub current_committed_state: SubmersionState,
pub smoothed_depth: f32,
pub wetness_ratio: f32,
pub last_commit_tick: u64,
}Expand description
Hysteresis gate to filter high-frequency fluid noise before committing discrete transitions.
Fields§
§current_committed_state: SubmersionState§smoothed_depth: f32§wetness_ratio: f32§last_commit_tick: u64Implementations§
Trait Implementations§
§impl Clone for HydrologicalHysteresisGate
impl Clone for HydrologicalHysteresisGate
§fn clone(&self) -> HydrologicalHysteresisGate
fn clone(&self) -> HydrologicalHysteresisGate
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 moreimpl Copy for HydrologicalHysteresisGate
§impl Debug for HydrologicalHysteresisGate
impl Debug for HydrologicalHysteresisGate
§impl Default for HydrologicalHysteresisGate
impl Default for HydrologicalHysteresisGate
§fn default() -> HydrologicalHysteresisGate
fn default() -> HydrologicalHysteresisGate
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HydrologicalHysteresisGate
impl RefUnwindSafe for HydrologicalHysteresisGate
impl Send for HydrologicalHysteresisGate
impl Sync for HydrologicalHysteresisGate
impl Unpin for HydrologicalHysteresisGate
impl UnsafeUnpin for HydrologicalHysteresisGate
impl UnwindSafe for HydrologicalHysteresisGate
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