pub struct StyleTransitionOptions {
pub duration_ms: Option<f64>,
pub delay_ms: Option<f64>,
pub enable_placement_transitions: Option<bool>,
}Expand description
The default [transition](https://maplibre.org/maplibre-style-spec/transition/) for changes to a style’s paint properties.
See mln_style_transition_options in the
C API reference.
Fields§
§duration_ms: Option<f64>§delay_ms: Option<f64>§enable_placement_transitions: Option<bool>Whether symbols fade in and out as the map places them.
Trait Implementations§
Source§impl Clone for StyleTransitionOptions
impl Clone for StyleTransitionOptions
Source§fn clone(&self) -> StyleTransitionOptions
fn clone(&self) -> StyleTransitionOptions
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 StyleTransitionOptions
Source§impl Debug for StyleTransitionOptions
impl Debug for StyleTransitionOptions
Source§impl Default for StyleTransitionOptions
impl Default for StyleTransitionOptions
Source§fn default() -> StyleTransitionOptions
fn default() -> StyleTransitionOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for StyleTransitionOptions
impl PartialEq 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
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