Enum gluon_base::types::BuiltinType
source · pub enum BuiltinType {
String,
Byte,
Char,
Int,
Float,
Array,
Function,
}
Expand description
All the builtin types of gluon
Variants§
String
Unicode string
Byte
Unsigned byte
Char
Character
Int
Integer number
Float
Floating point number
Array
Type constructor for arrays, Array a : Type -> Type
Function
Type constructor for functions, (->) a b : Type -> Type -> Type
Implementations§
Trait Implementations§
source§impl<'ast, Id> AstClone<'ast, Id> for BuiltinType
impl<'ast, Id> AstClone<'ast, Id> for BuiltinType
source§impl Clone for BuiltinType
impl Clone for BuiltinType
source§fn clone(&self) -> BuiltinType
fn clone(&self) -> BuiltinType
Returns a copy 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 BuiltinType
impl Debug for BuiltinType
source§impl<'de> Deserialize<'de> for BuiltinType
impl<'de> Deserialize<'de> for BuiltinType
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 Display for BuiltinType
impl Display for BuiltinType
source§impl FromStr for BuiltinType
impl FromStr for BuiltinType
source§impl Hash for BuiltinType
impl Hash for BuiltinType
source§impl PartialEq for BuiltinType
impl PartialEq for BuiltinType
source§fn eq(&self, other: &BuiltinType) -> bool
fn eq(&self, other: &BuiltinType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BuiltinType
impl Serialize for BuiltinType
impl Copy for BuiltinType
impl Eq for BuiltinType
impl StructuralEq for BuiltinType
impl StructuralPartialEq for BuiltinType
Auto Trait Implementations§
impl RefUnwindSafe for BuiltinType
impl Send for BuiltinType
impl Sync for BuiltinType
impl Unpin for BuiltinType
impl UnwindSafe for BuiltinType
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