pub enum TypedValue<T: TypeSet = DefaultTypeSet> {
Void,
MaybeSignedInt(T::Integer),
Int(T::Integer),
SignedInt(T::SignedInteger),
Float(T::Float),
Bool(bool),
String(T::String),
}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.
MaybeSignedInt can compare equal with Int and SignedInt.
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(T::String)
Represents a string.
Implementations§
Trait Implementations§
Source§impl<T: TypeSet> Clone for TypedValue<T>
impl<T: TypeSet> Clone for TypedValue<T>
Source§impl<T: TypeSet> LoadOwned<T> for TypedValue<T>
impl<T: TypeSet> LoadOwned<T> for TypedValue<T>
Source§type Output = TypedValue<T>
type Output = TypedValue<T>
The type of the result.
Source§fn load_owned(_ctx: &T, typed: &TypedValue<T>) -> Option<Self>
fn load_owned(_ctx: &T, typed: &TypedValue<T>) -> Option<Self>
Loads an owned value from the given type context.
Source§impl<T: TypeSet> LoadStore<T> for TypedValue<T>
impl<T: TypeSet> LoadStore<T> for TypedValue<T>
Source§type Output<'s> = TypedValue<T>
type Output<'s> = TypedValue<T>
The type of the result.
Source§fn load(ctx: &T, typed: &TypedValue<T>) -> Option<Self>
fn load(ctx: &T, typed: &TypedValue<T>) -> Option<Self>
Loads a borrowed value from the given type context.
Source§fn store(&self, _ctx: &mut T) -> TypedValue<T>
fn store(&self, _ctx: &mut T) -> TypedValue<T>
Stores a Rust value into a TypedValue using the given type context.
Source§impl<T: TypeSet> PartialEq for TypedValue<T>
impl<T: TypeSet> PartialEq for TypedValue<T>
Auto Trait Implementations§
impl<T> Freeze for TypedValue<T>
impl<T> RefUnwindSafe for TypedValue<T>where
<T as TypeSet>::Integer: RefUnwindSafe,
<T as TypeSet>::SignedInteger: RefUnwindSafe,
<T as TypeSet>::Float: RefUnwindSafe,
<T as TypeSet>::String: 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>::Integer: UnwindSafe,
<T as TypeSet>::SignedInteger: UnwindSafe,
<T as TypeSet>::Float: UnwindSafe,
<T as TypeSet>::String: 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