pub enum Inline {
Empty,
Unit,
Bool(bool),
Char(char),
Signed(i64),
Unsigned(u64),
Float(f64),
Type(Type),
Ordering(Ordering),
}
Expand description
An inline value.
Variants§
Empty
An empty value.
Note that this value can not be instantiated. Internally any operations over it will result in a type error, even when operating with itself.
Some operations will return a “falsy” value, like type checks.
Unit
The unit value.
Bool(bool)
A boolean.
Char(char)
A character.
Signed(i64)
A number.
Unsigned(u64)
An unsigned number.
Float(f64)
A float.
Type(Type)
A type hash. Describes a type in the virtual machine.
Ordering(Ordering)
Ordering.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Inline
impl<'de> Deserialize<'de> for Inline
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 From<Inline> for ConstValue
impl From<Inline> for ConstValue
Source§impl IntoOutput for Inline
impl IntoOutput for Inline
Source§fn into_output(self) -> Result<Value, RuntimeError>
fn into_output(self) -> Result<Value, RuntimeError>
Coerce the current value into an output.
impl Copy for Inline
Auto Trait Implementations§
impl Freeze for Inline
impl RefUnwindSafe for Inline
impl Send for Inline
impl Sync for Inline
impl Unpin for Inline
impl UnwindSafe for Inline
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)