pub enum ResolvedType {
Show 17 variants
Int(ResolvedIntTypeRef),
Float(ResolvedFloatTypeRef),
String(ResolvedStringTypeRef),
Bool(ResolvedBoolTypeRef),
Unit(ResolvedUnitTypeRef),
Array(ResolvedArrayTypeRef),
Tuple(ResolvedTupleTypeRef),
Struct(ResolvedStructTypeRef),
Map(ResolvedMapTypeRef),
Enum(ResolvedEnumTypeRef),
EnumVariant(ResolvedEnumVariantTypeRef),
FunctionInternal(ResolvedInternalFunctionDefinitionRef),
FunctionExternal(ResolvedExternalFunctionDefinitionRef),
ExclusiveRange(ResolvedExclusiveRangeTypeRef),
Alias(LocalTypeName, Box<ResolvedType>),
Optional(Box<ResolvedType>),
Any,
}
Variants§
Int(ResolvedIntTypeRef)
Float(ResolvedFloatTypeRef)
String(ResolvedStringTypeRef)
Bool(ResolvedBoolTypeRef)
Unit(ResolvedUnitTypeRef)
Array(ResolvedArrayTypeRef)
Tuple(ResolvedTupleTypeRef)
Struct(ResolvedStructTypeRef)
Map(ResolvedMapTypeRef)
Enum(ResolvedEnumTypeRef)
EnumVariant(ResolvedEnumVariantTypeRef)
FunctionInternal(ResolvedInternalFunctionDefinitionRef)
FunctionExternal(ResolvedExternalFunctionDefinitionRef)
ExclusiveRange(ResolvedExclusiveRangeTypeRef)
Alias(LocalTypeName, Box<ResolvedType>)
Optional(Box<ResolvedType>)
Any
Implementations§
Source§impl ResolvedType
impl ResolvedType
pub fn expect_struct_type(&self) -> Result<ResolvedStructTypeRef, SemanticError>
pub fn same_type(&self, other: &ResolvedType) -> bool
pub fn display_name(&self) -> String
Trait Implementations§
Source§impl Clone for ResolvedType
impl Clone for ResolvedType
Source§fn clone(&self) -> ResolvedType
fn clone(&self) -> ResolvedType
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 ResolvedType
impl Debug for ResolvedType
Auto Trait Implementations§
impl Freeze for ResolvedType
impl !RefUnwindSafe for ResolvedType
impl !Send for ResolvedType
impl !Sync for ResolvedType
impl Unpin for ResolvedType
impl !UnwindSafe for ResolvedType
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