Enum hotg_rune_core::Value [−][src]
#[non_exhaustive] pub enum Value { Byte(u8), Short(i16), Integer(i32), Float(f32), SignedByte(i8), }
Expand description
A dynamically typed value that may be passed back and forth across the runtime.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Implementations
Get a buffer big enough to be used with Value::to_le_bytes()
.
Write this Value
’s underlying value to the start of the provided
buffer, returning the number of bytes written.
The buffer should have at least core::mem::size_of::<Value>()
bytes.
You can use the Value::buffer()
helper for creating an adequately
sized buffer.
Trait Implementations
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
type Error = PixelFormatConversionError
type Error = PixelFormatConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more