pub struct ViewportAnimationOptions {
pub duration_seconds: f32,
pub easing: ViewportAnimationEasing,
}Expand description
Renderer-neutral viewport animation options.
Fields§
§duration_seconds: f32Animation duration in seconds.
easing: ViewportAnimationEasingEasing mode used when sampling frames.
Implementations§
Source§impl ViewportAnimationOptions
impl ViewportAnimationOptions
pub fn new(duration_seconds: f32) -> Self
pub fn with_easing(self, easing: ViewportAnimationEasing) -> Self
Trait Implementations§
Source§impl Clone for ViewportAnimationOptions
impl Clone for ViewportAnimationOptions
Source§fn clone(&self) -> ViewportAnimationOptions
fn clone(&self) -> ViewportAnimationOptions
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 ViewportAnimationOptions
Source§impl Debug for ViewportAnimationOptions
impl Debug for ViewportAnimationOptions
Source§impl<'de> Deserialize<'de> for ViewportAnimationOptions
impl<'de> Deserialize<'de> for ViewportAnimationOptions
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 ViewportAnimationOptions
impl PartialEq for ViewportAnimationOptions
Source§fn eq(&self, other: &ViewportAnimationOptions) -> bool
fn eq(&self, other: &ViewportAnimationOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ViewportAnimationOptions
impl Serialize for ViewportAnimationOptions
impl StructuralPartialEq for ViewportAnimationOptions
Auto Trait Implementations§
impl Freeze for ViewportAnimationOptions
impl RefUnwindSafe for ViewportAnimationOptions
impl Send for ViewportAnimationOptions
impl Sync for ViewportAnimationOptions
impl Unpin for ViewportAnimationOptions
impl UnsafeUnpin for ViewportAnimationOptions
impl UnwindSafe for ViewportAnimationOptions
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