pub enum Value {
String(String),
UInt(u64),
SInt(i64),
Float(CustomOrdWrapper<f32>),
Double(CustomOrdWrapper<f64>),
Bool(bool),
Null,
}Expand description
Value is the old type used by Mapbox vector tiles. Properties cannot be nested, so we only
support string, number, boolean, and null (None in Rust).
Variants§
String(String)
String value
UInt(u64)
Unsigned integer value
SInt(i64)
Signed integer 64-bit value
Float(CustomOrdWrapper<f32>)
32-bit Floating point value
Double(CustomOrdWrapper<f64>)
64-bit Floating point value
Bool(bool)
Boolean value
Null
Null value
Trait Implementations§
Source§impl From<&Value> for PrimitiveValue
impl From<&Value> for PrimitiveValue
Source§fn from(mval: &MapboxValue) -> Self
fn from(mval: &MapboxValue) -> Self
Converts to this type from the input type.
Source§impl From<&Value> for ValueType
impl From<&Value> for ValueType
Source§fn from(mval: &MapboxValue) -> Self
fn from(mval: &MapboxValue) -> Self
Converts to this type from the input type.
Source§impl From<PrimitiveValue> for Value
impl From<PrimitiveValue> for Value
Source§fn from(val: PrimitiveValue) -> Self
fn from(val: PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl Ord for Value
impl Ord for Value
Source§impl PartialOrd for Value
impl PartialOrd for Value
Source§impl ProtoWrite for Value
impl ProtoWrite for Value
impl Eq for Value
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 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