Struct AnimationOptions
#[non_exhaustive]pub struct AnimationOptions {
pub duration_ms: Option<f64>,
pub velocity: Option<f64>,
pub min_zoom: Option<f64>,
pub easing: Option<UnitBezier>,
}Expand description
Optional animation controls for camera transitions.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.duration_ms: Option<f64>§velocity: Option<f64>§min_zoom: Option<f64>§easing: Option<UnitBezier>Implementations§
§impl AnimationOptions
impl AnimationOptions
pub fn new() -> AnimationOptions
pub fn with_duration_ms(self, duration_ms: f64) -> AnimationOptions
pub fn with_velocity(self, velocity: f64) -> AnimationOptions
pub fn with_min_zoom(self, min_zoom: f64) -> AnimationOptions
pub fn with_easing(self, easing: UnitBezier) -> AnimationOptions
Trait Implementations§
§impl Clone for AnimationOptions
impl Clone for AnimationOptions
§fn clone(&self) -> AnimationOptions
fn clone(&self) -> AnimationOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for AnimationOptions
impl Debug for AnimationOptions
§impl Default for AnimationOptions
impl Default for AnimationOptions
§fn default() -> AnimationOptions
fn default() -> AnimationOptions
Returns the “default value” for a type. Read more
§impl PartialEq for AnimationOptions
impl PartialEq for AnimationOptions
impl StructuralPartialEq for AnimationOptions
Auto Trait Implementations§
impl Freeze for AnimationOptions
impl RefUnwindSafe for AnimationOptions
impl Send for AnimationOptions
impl Sync for AnimationOptions
impl Unpin for AnimationOptions
impl UnsafeUnpin for AnimationOptions
impl UnwindSafe for AnimationOptions
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