Enum erg_compiler::ty::TypePair
source · #[repr(u8)]pub enum TypePair {
Show 66 variants
IntInt,
IntNat,
IntFloat,
IntStr,
IntBool,
IntArray,
IntFunc,
IntProc,
NatInt,
NatNat,
NatFloat,
NatStr,
NatBool,
NatArray,
NatFunc,
NatProc,
FloatInt,
FloatNat,
FloatFloat,
FloatStr,
FloatBool,
FloatArray,
FloatFunc,
FloatProc,
BoolInt,
BoolNat,
BoolFloat,
BoolStr,
BoolBool,
BoolArray,
BoolFunc,
BoolProc,
StrInt,
StrNat,
StrFloat,
StrBool,
StrStr,
StrArray,
StrFunc,
StrProc,
ArrayInt,
ArrayNat,
ArrayFloat,
ArrayStr,
ArrayBool,
ArrayArray,
ArrayFunc,
ArrayProc,
FuncInt,
FuncNat,
FuncFloat,
FuncStr,
FuncBool,
FuncArray,
FuncFunc,
FuncProc,
ProcInt,
ProcNat,
ProcFloat,
ProcStr,
ProcBool,
ProcArray,
ProcFunc,
ProcProc,
Others,
Illegals,
}
Expand description
バイトコード命令で、in-place型付けをするオブジェクトペア とりあえずは必要性の高いペアから登録する 全ての式の型が確認されているので、戻り値の型は不要
Variants§
IntInt
IntNat
IntFloat
IntStr
IntBool
IntArray
IntFunc
IntProc
NatInt
NatNat
NatFloat
NatStr
NatBool
NatArray
NatFunc
NatProc
FloatInt
FloatNat
FloatFloat
FloatStr
FloatBool
FloatArray
FloatFunc
FloatProc
BoolInt
BoolNat
BoolFloat
BoolStr
BoolBool
BoolArray
BoolFunc
BoolProc
StrInt
StrNat
StrFloat
StrBool
StrStr
StrArray
StrFunc
StrProc
ArrayInt
ArrayNat
ArrayFloat
ArrayStr
ArrayBool
ArrayArray
ArrayFunc
ArrayProc
FuncInt
FuncNat
FuncFloat
FuncStr
FuncBool
FuncArray
FuncFunc
FuncProc
ProcInt
ProcNat
ProcFloat
ProcStr
ProcBool
ProcArray
ProcFunc
ProcProc
Others
Illegals
Implementations§
Trait Implementations§
source§impl PartialEq<TypePair> for TypePair
impl PartialEq<TypePair> for TypePair
impl Copy for TypePair
impl Eq for TypePair
impl StructuralEq for TypePair
impl StructuralPartialEq for TypePair
Auto Trait Implementations§
impl RefUnwindSafe for TypePair
impl Send for TypePair
impl Sync for TypePair
impl Unpin for TypePair
impl UnwindSafe for TypePair
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