pub struct TransitionSpec {
pub duration: f32,
pub delay: f32,
}Expand description
Transition timing specification.
Mirrors Mapbox GL JS TransitionSpecification:
{ "duration": 300, "delay": 0 }Both values are in seconds (Mapbox uses milliseconds — we convert at the JSON-parsing boundary).
Fields§
§duration: f32Transition duration in seconds. Default: 0.3 (300 ms).
delay: f32Delay before the transition begins, in seconds. Default: 0.0.
Implementations§
Trait Implementations§
Source§impl Clone for TransitionSpec
impl Clone for TransitionSpec
Source§fn clone(&self) -> TransitionSpec
fn clone(&self) -> TransitionSpec
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 TransitionSpec
Source§impl Debug for TransitionSpec
impl Debug for TransitionSpec
Source§impl Default for TransitionSpec
impl Default for TransitionSpec
Source§impl PartialEq for TransitionSpec
impl PartialEq for TransitionSpec
Source§fn eq(&self, other: &TransitionSpec) -> bool
fn eq(&self, other: &TransitionSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TransitionSpec
Auto Trait Implementations§
impl Freeze for TransitionSpec
impl RefUnwindSafe for TransitionSpec
impl Send for TransitionSpec
impl Sync for TransitionSpec
impl Unpin for TransitionSpec
impl UnsafeUnpin for TransitionSpec
impl UnwindSafe for TransitionSpec
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