pub enum ValueTypeKind {
String {
value: StringIdentifier,
length: usize,
is_uppercase: Trinary,
is_lowercase: Trinary,
is_ascii_lowercase: Trinary,
is_ascii_uppercase: Trinary,
},
Integer {
value: i64,
},
Float {
value: OrderedFloat<f64>,
},
Null,
True,
False,
ClassLikeConstant {
class_like: ClassLikeName,
constant: StringIdentifier,
},
}Expand description
Represents value types, including literal values and class constants.
Variants§
String
A literal string value.
For example, 'foo'.
Fields
§
value: StringIdentifierInteger
A literal integer value.
For example, 42.
Float
A literal float value.
For example, 3.14.
Fields
§
value: OrderedFloat<f64>Null
The null value.
True
The true boolean value.
False
The false boolean value.
ClassLikeConstant
A class-like constant.
For example, Foo::BAR, where Foo is the class and BAR is the constant.
Trait Implementations§
Source§impl Clone for ValueTypeKind
impl Clone for ValueTypeKind
Source§fn clone(&self) -> ValueTypeKind
fn clone(&self) -> ValueTypeKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValueTypeKind
impl Debug for ValueTypeKind
Source§impl<'de> Deserialize<'de> for ValueTypeKind
impl<'de> Deserialize<'de> for ValueTypeKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ValueTypeKind
impl Hash for ValueTypeKind
Source§impl Ord for ValueTypeKind
impl Ord for ValueTypeKind
Source§fn cmp(&self, other: &ValueTypeKind) -> Ordering
fn cmp(&self, other: &ValueTypeKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ValueTypeKind
impl PartialEq for ValueTypeKind
Source§impl PartialOrd for ValueTypeKind
impl PartialOrd for ValueTypeKind
Source§impl Serialize for ValueTypeKind
impl Serialize for ValueTypeKind
impl Copy for ValueTypeKind
impl Eq for ValueTypeKind
impl StructuralPartialEq for ValueTypeKind
Auto Trait Implementations§
impl Freeze for ValueTypeKind
impl RefUnwindSafe for ValueTypeKind
impl Send for ValueTypeKind
impl Sync for ValueTypeKind
impl Unpin for ValueTypeKind
impl UnwindSafe for ValueTypeKind
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