pub enum ResolvedLiteral {
FloatLiteral(Fp, ResolvedFloatTypeRef),
UnitLiteral(ResolvedUnitTypeRef),
NoneLiteral,
IntLiteral(i32, ResolvedIntTypeRef),
StringLiteral(StringConst, ResolvedStringTypeRef),
BoolLiteral(bool, ResolvedBoolTypeRef),
EnumVariantLiteral(ResolvedEnumVariantTypeRef, ResolvedEnumLiteralData),
TupleLiteral(ResolvedTupleTypeRef, Vec<ResolvedExpression>),
Array(ResolvedArrayTypeRef, Vec<ResolvedExpression>),
Map(ResolvedMapTypeRef, Vec<(ResolvedExpression, ResolvedExpression)>),
}
Variants§
FloatLiteral(Fp, ResolvedFloatTypeRef)
UnitLiteral(ResolvedUnitTypeRef)
NoneLiteral
IntLiteral(i32, ResolvedIntTypeRef)
StringLiteral(StringConst, ResolvedStringTypeRef)
BoolLiteral(bool, ResolvedBoolTypeRef)
EnumVariantLiteral(ResolvedEnumVariantTypeRef, ResolvedEnumLiteralData)
TupleLiteral(ResolvedTupleTypeRef, Vec<ResolvedExpression>)
Array(ResolvedArrayTypeRef, Vec<ResolvedExpression>)
Map(ResolvedMapTypeRef, Vec<(ResolvedExpression, ResolvedExpression)>)
Trait Implementations§
Source§impl Debug for ResolvedLiteral
impl Debug for ResolvedLiteral
Auto Trait Implementations§
impl Freeze for ResolvedLiteral
impl !RefUnwindSafe for ResolvedLiteral
impl !Send for ResolvedLiteral
impl !Sync for ResolvedLiteral
impl Unpin for ResolvedLiteral
impl !UnwindSafe for ResolvedLiteral
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