#[repr(u8)]pub enum RantValueType {
String = 0,
Float = 1,
Int = 2,
Boolean = 3,
Function = 4,
List = 5,
Tuple = 6,
Map = 7,
Selector = 8,
Range = 9,
Nothing = 10,
}
Expand description
A lightweight representation of a Rant value’s type.
Variants§
String = 0
The string
type.
Float = 1
The float
type.
Int = 2
The int
type.
Boolean = 3
The bool
type.
Function = 4
The function
type.
List = 5
The list
type.
Tuple = 6
The tuple
type.
Map = 7
The map
type.
Selector = 8
The selector
type.
Range = 9
The range
type.
Nothing = 10
The nothing
type.
Implementations§
Trait Implementations§
Source§impl Clone for RantValueType
impl Clone for RantValueType
Source§fn clone(&self) -> RantValueType
fn clone(&self) -> RantValueType
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 Debug for RantValueType
impl Debug for RantValueType
Source§impl Display for RantValueType
impl Display for RantValueType
Source§impl PartialEq for RantValueType
impl PartialEq for RantValueType
impl Copy for RantValueType
impl StructuralPartialEq for RantValueType
Auto Trait Implementations§
impl Freeze for RantValueType
impl RefUnwindSafe for RantValueType
impl Send for RantValueType
impl Sync for RantValueType
impl Unpin for RantValueType
impl UnwindSafe for RantValueType
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