pub struct StyleExpressionInputs<'a> {
pub zoom: Option<f64>,
pub color_ramp_parameter: Option<f64>,
pub feature: &'a str,
pub feature_state: &'a str,
pub global_state: &'a str,
pub canonical_tile_id: Option<CanonicalTileId>,
pub available_images: &'a [&'a str],
}Expand description
The inputs that a style expression reads while it evaluates.
See mln_style_expression_inputs in the
C API reference.
Fields§
§zoom: Option<f64>§color_ramp_parameter: Option<f64>The value of heatmap-density, line-progress, and elevation.
feature: &'a strThe feature to evaluate against, as a GeoJSON feature, or empty for none.
feature_state: &'a strThe feature’s state, as a JSON object, or empty for none.
global_state: &'a strThe values that global-state reads, as a JSON object, or empty for
none.
canonical_tile_id: Option<CanonicalTileId>The tile that holds the feature. within and distance need it to read
the feature’s geometry.
available_images: &'a [&'a str]The IDs of the images that image treats as available.
Trait Implementations§
Source§impl<'a> Clone for StyleExpressionInputs<'a>
impl<'a> Clone for StyleExpressionInputs<'a>
Source§fn clone(&self) -> StyleExpressionInputs<'a>
fn clone(&self) -> StyleExpressionInputs<'a>
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<'a> Debug for StyleExpressionInputs<'a>
impl<'a> Debug for StyleExpressionInputs<'a>
Source§impl<'a> Default for StyleExpressionInputs<'a>
impl<'a> Default for StyleExpressionInputs<'a>
Source§fn default() -> StyleExpressionInputs<'a>
fn default() -> StyleExpressionInputs<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> PartialEq for StyleExpressionInputs<'a>
impl<'a> PartialEq for StyleExpressionInputs<'a>
impl<'a> StructuralPartialEq for StyleExpressionInputs<'a>
Auto Trait Implementations§
impl<'a> Freeze for StyleExpressionInputs<'a>
impl<'a> RefUnwindSafe for StyleExpressionInputs<'a>
impl<'a> Send for StyleExpressionInputs<'a>
impl<'a> Sync for StyleExpressionInputs<'a>
impl<'a> Unpin for StyleExpressionInputs<'a>
impl<'a> UnsafeUnpin for StyleExpressionInputs<'a>
impl<'a> UnwindSafe for StyleExpressionInputs<'a>
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