pub enum TypeName {
Show 21 variants
Bool,
S8,
U8,
S16,
U16,
S32,
U32,
S64,
U64,
F32,
F64,
Chr,
Str,
List(Box<TypeName>),
Tuple(Vec<TypeName>),
Option(Box<TypeName>),
Result {
ok: Option<Box<TypeName>>,
error: Option<Box<TypeName>>,
},
Record(Vec<(String, Box<TypeName>)>),
Flags(Vec<String>),
Enum(Vec<String>),
Variant {
cases: Vec<(String, Option<Box<TypeName>>)>,
},
}Variants§
Bool
S8
U8
S16
U16
S32
U32
S64
U64
F32
F64
Chr
Str
List(Box<TypeName>)
Tuple(Vec<TypeName>)
Option(Box<TypeName>)
Result
Record(Vec<(String, Box<TypeName>)>)
Flags(Vec<String>)
Enum(Vec<String>)
Variant
Trait Implementations§
Source§impl From<&InferredNumber> for TypeName
impl From<&InferredNumber> for TypeName
Source§fn from(value: &InferredNumber) -> Self
fn from(value: &InferredNumber) -> Self
Converts to this type from the input type.
Source§impl From<&TypeName> for InferredType
impl From<&TypeName> for InferredType
Source§impl Ord for TypeName
impl Ord for TypeName
Source§impl PartialOrd for TypeName
impl PartialOrd for TypeName
Source§impl TryFrom<InferredType> for TypeName
impl TryFrom<InferredType> for TypeName
impl Eq for TypeName
impl StructuralPartialEq for TypeName
Auto Trait Implementations§
impl Freeze for TypeName
impl RefUnwindSafe for TypeName
impl Send for TypeName
impl Sync for TypeName
impl Unpin for TypeName
impl UnsafeUnpin for TypeName
impl UnwindSafe for TypeName
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.