pub struct ActiveScrollAxis {Show 14 fields
pub phase: AxisPhase,
pub pos: f32,
pub vel: f32,
pub overscroll: f32,
pub target: f32,
pub start_pos: f32,
pub start_vel: f32,
pub elapsed_s: f32,
pub max: f32,
pub viewport: f32,
pub last_input_ms: ScrollTimestampMs,
pub bounce_enabled: bool,
pub overscroll_behavior: OverscrollBehavior,
pub rubber_band: RubberBandSpec,
}Expand description
Per-axis closed-form scroll physics state (Copy, zero heap fields).
Fields§
§phase: AxisPhase§pos: f32§vel: f32§overscroll: f32§target: f32§start_pos: f32§start_vel: f32§elapsed_s: f32§max: f32§viewport: f32§last_input_ms: ScrollTimestampMs§bounce_enabled: bool§overscroll_behavior: OverscrollBehavior§rubber_band: RubberBandSpecTrait Implementations§
Source§impl Clone for ActiveScrollAxis
impl Clone for ActiveScrollAxis
impl Copy for ActiveScrollAxis
Source§impl Debug for ActiveScrollAxis
impl Debug for ActiveScrollAxis
Auto Trait Implementations§
impl Forget for ActiveScrollAxis
impl Freeze for ActiveScrollAxis
impl Move for ActiveScrollAxis
impl RefUnwindSafe for ActiveScrollAxis
impl Send for ActiveScrollAxis
impl Sync for ActiveScrollAxis
impl Unpin for ActiveScrollAxis
impl UnsafeUnpin for ActiveScrollAxis
impl UnwindSafe for ActiveScrollAxis
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