[−][src]Enum rune::IrValue
A constant value.
Variants
A constant unit.
Byte(u8)
A byte.
Char(char)
A character.
Bool(bool)
A boolean constant value.
Integer(BigInt)
An integer constant.
Float(f64)
An float constant.
A string constant designated by its slot.
An optional value.
A byte string.
A vector of values.
An anonymous tuple.
An anonymous object.
Implementations
impl IrValue
[src]
pub fn from_const(value: ConstValue) -> Self
[src]
Convert a constant value into an interpreter value.
pub fn into_const<S>(self, spanned: S) -> Result<ConstValue, IrError> where
S: Copy + Spanned,
[src]
S: Copy + Spanned,
Convert into constant value.
pub fn into_bool(self) -> Result<bool, Self>
[src]
Try to coerce into boolean.
pub fn into_integer<T>(self) -> Option<T> where
T: TryFrom<BigInt>,
[src]
T: TryFrom<BigInt>,
Try to coerce into an integer of the specified type.
pub fn type_info(&self) -> TypeInfo
[src]
Get the type information of the value.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for IrValue
[src]
impl !Send for IrValue
[src]
impl !Sync for IrValue
[src]
impl Unpin for IrValue
[src]
impl !UnwindSafe for IrValue
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,