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