pub struct ViewportPanInertiaFrame {
pub elapsed_seconds: f32,
pub progress: f32,
pub speed_screen: f32,
pub velocity_screen: CanvasPoint,
pub transform: ViewportTransform,
pub done: bool,
}Expand description
Sampled inertial pan frame.
Fields§
§elapsed_seconds: f32§progress: f32§speed_screen: f32§velocity_screen: CanvasPoint§transform: ViewportTransform§done: boolTrait Implementations§
Source§impl Clone for ViewportPanInertiaFrame
impl Clone for ViewportPanInertiaFrame
Source§fn clone(&self) -> ViewportPanInertiaFrame
fn clone(&self) -> ViewportPanInertiaFrame
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 ViewportPanInertiaFrame
Source§impl Debug for ViewportPanInertiaFrame
impl Debug for ViewportPanInertiaFrame
Source§impl<'de> Deserialize<'de> for ViewportPanInertiaFrame
impl<'de> Deserialize<'de> for ViewportPanInertiaFrame
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 ViewportPanInertiaFrame
impl PartialEq for ViewportPanInertiaFrame
Source§fn eq(&self, other: &ViewportPanInertiaFrame) -> bool
fn eq(&self, other: &ViewportPanInertiaFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ViewportPanInertiaFrame
impl Serialize for ViewportPanInertiaFrame
impl StructuralPartialEq for ViewportPanInertiaFrame
Auto Trait Implementations§
impl Freeze for ViewportPanInertiaFrame
impl RefUnwindSafe for ViewportPanInertiaFrame
impl Send for ViewportPanInertiaFrame
impl Sync for ViewportPanInertiaFrame
impl Unpin for ViewportPanInertiaFrame
impl UnsafeUnpin for ViewportPanInertiaFrame
impl UnwindSafe for ViewportPanInertiaFrame
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