pub enum ValueType {
Bool,
Fixed,
Float,
Currency,
Int,
String,
Range,
Array,
Object,
Numeric,
Compound,
Any,
}
Expand description
The set of types that can be used as values Bool, Fixed, Float, Currency, Int, String, Array, Object represent real types whereas Numeric, Compound, and Any are virtual types representing a set of types
Numeric is a set of Fixed, Float, Currency, and Int Compound is a set of Array and Object Any is a set of all types
When operations are performed on values, the type of the result is determined using the following order of priority:
- Object
- Array
- String
- Fixed
- Float
- Int
- Bool
Variants§
Bool
A boolean value
Fixed
A fixed-point value
Float
A floating-point value
Currency
A currency value
Int
An integer value
String
A string value
Range
A range value
Array
An array value
Object
An object value
Numeric
A numeric value (fixed, float, currency, or int)
Compound
A compound value (array, range or object)
Any
Any value
Trait Implementations§
source§impl<'de> Deserialize<'de> for ValueType
impl<'de> Deserialize<'de> for ValueType
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for ValueType
impl Ord for ValueType
source§impl PartialEq for ValueType
impl PartialEq for ValueType
source§impl PartialOrd for ValueType
impl PartialOrd for ValueType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ValueType
impl Eq for ValueType
impl StructuralEq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnwindSafe for ValueType
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