Struct StyleTransitionOptions
#[non_exhaustive]pub struct StyleTransitionOptions {
pub duration_ms: Option<f64>,
pub delay_ms: Option<f64>,
pub enable_placement_transitions: Option<bool>,
}Expand description
The style’s global transition options, controlling how paint property changes animate and whether symbol placement changes cross-fade.
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>Transition duration in milliseconds. None falls back to the duration
the style declares for each transitioning property.
delay_ms: Option<f64>Transition delay in milliseconds. None falls back to the delay the
style declares for each transitioning property.
enable_placement_transitions: Option<bool>Whether symbol placement changes cross-fade. None leaves the
cross-fade on; clearing it applies placement changes to the next
rendered frame. A read always reports a value.
Trait Implementations§
§impl Clone for StyleTransitionOptions
impl Clone for StyleTransitionOptions
§fn clone(&self) -> StyleTransitionOptions
fn clone(&self) -> StyleTransitionOptions
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 StyleTransitionOptions
impl Debug for StyleTransitionOptions
§impl Default for StyleTransitionOptions
impl Default for StyleTransitionOptions
§fn default() -> StyleTransitionOptions
fn default() -> StyleTransitionOptions
Returns the “default value” for a type. Read more
§impl PartialEq for StyleTransitionOptions
impl PartialEq for StyleTransitionOptions
impl Copy for StyleTransitionOptions
impl StructuralPartialEq for StyleTransitionOptions
Auto Trait Implementations§
impl Freeze for StyleTransitionOptions
impl RefUnwindSafe for StyleTransitionOptions
impl Send for StyleTransitionOptions
impl Sync for StyleTransitionOptions
impl Unpin for StyleTransitionOptions
impl UnsafeUnpin for StyleTransitionOptions
impl UnwindSafe for StyleTransitionOptions
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