Enum rant::RantValueType
source · [−]#[repr(u8)]
pub enum RantValueType {
String,
Float,
Int,
Boolean,
Function,
List,
Tuple,
Map,
Selector,
Range,
Nothing,
}
Expand description
A lightweight representation of a Rant value’s type.
Variants
String
The string
type.
Float
The float
type.
Int
The int
type.
Boolean
The bool
type.
Function
The function
type.
List
The list
type.
Tuple
The tuple
type.
Map
The map
type.
Selector
The selector
type.
Range
The range
type.
Nothing
The nothing
type.
Implementations
sourceimpl RantValueType
impl RantValueType
Trait Implementations
sourceimpl Clone for RantValueType
impl Clone for RantValueType
sourcefn clone(&self) -> RantValueType
fn clone(&self) -> RantValueType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RantValueType
impl Debug for RantValueType
sourceimpl Display for RantValueType
impl Display for RantValueType
sourceimpl PartialEq<RantValueType> for RantValueType
impl PartialEq<RantValueType> for RantValueType
impl Copy for RantValueType
impl StructuralPartialEq for RantValueType
Auto Trait Implementations
impl RefUnwindSafe for RantValueType
impl Send for RantValueType
impl Sync for RantValueType
impl Unpin for RantValueType
impl UnwindSafe for RantValueType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more