pub struct CameraTransitionEnd {
pub outcome: CameraTransitionOutcome,
pub generation: u64,
pub velocity: CameraVelocity,
}Expand description
The end of a camera change.
See mln_camera_transition_end in the
C API reference.
Fields§
§outcome: CameraTransitionOutcome§generation: u64The generation of the first map snapshot that shows where the change left the camera, or 0 when the map closed first.
velocity: CameraVelocityHow fast a gesture’s momentum still moved when it was cancelled, which the next gesture can add to its own release velocities. Zero for every other end.
Trait Implementations§
Source§impl Clone for CameraTransitionEnd
impl Clone for CameraTransitionEnd
Source§fn clone(&self) -> CameraTransitionEnd
fn clone(&self) -> CameraTransitionEnd
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 CameraTransitionEnd
Source§impl Debug for CameraTransitionEnd
impl Debug for CameraTransitionEnd
Source§impl Default for CameraTransitionEnd
impl Default for CameraTransitionEnd
Source§fn default() -> CameraTransitionEnd
fn default() -> CameraTransitionEnd
Returns the “default value” for a type. Read more
Source§impl PartialEq for CameraTransitionEnd
impl PartialEq for CameraTransitionEnd
impl StructuralPartialEq for CameraTransitionEnd
Auto Trait Implementations§
impl Freeze for CameraTransitionEnd
impl RefUnwindSafe for CameraTransitionEnd
impl Send for CameraTransitionEnd
impl Sync for CameraTransitionEnd
impl Unpin for CameraTransitionEnd
impl UnsafeUnpin for CameraTransitionEnd
impl UnwindSafe for CameraTransitionEnd
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