pub enum Value {
Show 14 variants
Null,
Bool(bool),
Number(f64),
String(String),
Color(Color),
Array(Vec<Value>),
Object(BTreeMap<String, Value>),
Image {
name: String,
available: bool,
},
Formatted(Vec<FormatSection>),
NumberArray(Vec<f64>),
ColorArray(Vec<Color>),
Padding([f64; 4]),
Projection(Projection),
Collator {
case_sensitive: bool,
diacritic_sensitive: bool,
locale: Option<String>,
},
}Expand description
A value in the MapLibre expression type system.
Variants§
Null
Bool(bool)
Number(f64)
String(String)
Color(Color)
Array(Vec<Value>)
Object(BTreeMap<String, Value>)
Image
A resolved image reference (the image operator).
Formatted(Vec<FormatSection>)
Formatted text (the format operator): a list of styled sections.
NumberArray(Vec<f64>)
A numberArray value.
ColorArray(Vec<Color>)
A colorArray value.
Padding([f64; 4])
A padding value: [top, right, bottom, left].
Projection(Projection)
A projectionDefinition: a named projection or a transition between two.
Collator
A locale-aware string collator (the collator operator).
Implementations§
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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