pub enum TypedValue<T = DefaultTypeSet>{
Void,
MaybeSignedInt(T::Integer),
Int(T::Integer),
SignedInt(T::SignedInteger),
Float(T::Float),
Bool(bool),
String(StringIndex),
}Expand description
Represents any value in the expression language.
Variants§
Void
Represents no value.
MaybeSignedInt(T::Integer)
Represents an integer that may be signed or unsigned.
Int(T::Integer)
Represents an unsigned integer.
SignedInt(T::SignedInteger)
Represents a signed integer.
Float(T::Float)
Represents a floating-point.
Bool(bool)
Represents a boolean.
String(StringIndex)
Represents an interned string.
Implementations§
Trait Implementations§
Source§impl<T> Clone for TypedValue<T>
impl<T> Clone for TypedValue<T>
Source§fn clone(&self) -> TypedValue<T>
fn clone(&self) -> TypedValue<T>
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<T> Debug for TypedValue<T>
impl<T> Debug for TypedValue<T>
Source§impl<T> PartialEq for TypedValue<T>
impl<T> PartialEq for TypedValue<T>
impl<T> Copy for TypedValue<T>
impl<T> StructuralPartialEq for TypedValue<T>
Auto Trait Implementations§
impl<T> Freeze for TypedValue<T>
impl<T> RefUnwindSafe for TypedValue<T>where
<T as TypeSet>::Float: Sized + RefUnwindSafe,
<T as TypeSet>::Integer: Sized + RefUnwindSafe,
<T as TypeSet>::SignedInteger: RefUnwindSafe,
impl<T> Send for TypedValue<T>
impl<T> Sync for TypedValue<T>
impl<T> Unpin for TypedValue<T>
impl<T> UnwindSafe for TypedValue<T>where
<T as TypeSet>::Float: Sized + UnwindSafe,
<T as TypeSet>::Integer: Sized + UnwindSafe,
<T as TypeSet>::SignedInteger: UnwindSafe,
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