pub struct AnimationOptions {
pub duration_ms: Option<f64>,
pub velocity: Option<f64>,
pub min_zoom: Option<f64>,
pub easing: Option<UnitBezier>,
pub transition_id: Option<u64>,
pub end_handler: CameraTransitionHandler,
}Expand description
How a camera change animates.
See mln_animation_options in the
C API reference.
Fields§
§duration_ms: Option<f64>§velocity: Option<f64>The average speed of a fly animation, in screens per second.
duration_ms overrides it.
min_zoom: Option<f64>The zoom level at the peak of a fly animation.
easing: Option<UnitBezier>§transition_id: Option<u64>An ID that MapHandle::cancel_camera_transitions_with_id() cancels the
change by. Several changes can share one.
end_handler: CameraTransitionHandlerTrait Implementations§
Source§impl Clone for AnimationOptions
impl Clone for AnimationOptions
Source§fn clone(&self) -> AnimationOptions
fn clone(&self) -> AnimationOptions
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 moreSource§impl Debug for AnimationOptions
impl Debug for AnimationOptions
Source§impl Default for AnimationOptions
impl Default for AnimationOptions
Source§fn default() -> AnimationOptions
fn default() -> AnimationOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for AnimationOptions
impl !UnwindSafe for AnimationOptions
impl Freeze for AnimationOptions
impl Send for AnimationOptions
impl Sync for AnimationOptions
impl Unpin for AnimationOptions
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more