Enum over::types::Type
[−]
[src]
pub enum Type { Empty, Null, Bool, Int, Frac, Char, Str, Arr(Box<Type>), Tup(Vec<Type>), Obj, }
Enum of possible types for Value
.
Variants
Empty
A type used to indicate an empty Arr.
Null
Null value.
Bool
A boolean type.
Int
A signed integer type.
Frac
A fractional type.
Char
A character type.
Str
A string type.
Arr(Box<Type>)
An array type, containing the type of its sub-elements.
Tup(Vec<Type>)
A tuple type, containing the types of its sub-elements.
Obj
An object type.
Methods
impl Type
[src]
Trait Implementations
impl Clone for Type
[src]
fn clone(&self) -> Type
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Type
[src]
impl PartialEq for Type
[src]
Two types are considered equal if one of them is Empty or they have the same variant.
fn eq(&self, other: &Self) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.