pub struct ViewportAnimationRequest {
pub from: ViewportTransform,
pub to: ViewportTransform,
pub options: ViewportAnimationOptions,
}Expand description
Request to plan a viewport animation from one transform to another.
Fields§
§from: ViewportTransform§to: ViewportTransform§options: ViewportAnimationOptionsImplementations§
Source§impl ViewportAnimationRequest
impl ViewportAnimationRequest
pub fn new( from: ViewportTransform, to: ViewportTransform, options: ViewportAnimationOptions, ) -> Self
Trait Implementations§
Source§impl Clone for ViewportAnimationRequest
impl Clone for ViewportAnimationRequest
Source§fn clone(&self) -> ViewportAnimationRequest
fn clone(&self) -> ViewportAnimationRequest
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 ViewportAnimationRequest
Source§impl Debug for ViewportAnimationRequest
impl Debug for ViewportAnimationRequest
Source§impl<'de> Deserialize<'de> for ViewportAnimationRequest
impl<'de> Deserialize<'de> for ViewportAnimationRequest
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 ViewportAnimationRequest
impl PartialEq for ViewportAnimationRequest
Source§fn eq(&self, other: &ViewportAnimationRequest) -> bool
fn eq(&self, other: &ViewportAnimationRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ViewportAnimationRequest
impl Serialize for ViewportAnimationRequest
impl StructuralPartialEq for ViewportAnimationRequest
Auto Trait Implementations§
impl Freeze for ViewportAnimationRequest
impl RefUnwindSafe for ViewportAnimationRequest
impl Send for ViewportAnimationRequest
impl Sync for ViewportAnimationRequest
impl Unpin for ViewportAnimationRequest
impl UnsafeUnpin for ViewportAnimationRequest
impl UnwindSafe for ViewportAnimationRequest
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