Enum erg_compiler::ty::TypeCode
source · #[repr(u8)]
pub enum TypeCode {
Show 18 variants
Int32,
Nat64,
Float64,
Bool,
Str,
StrMut,
Array,
ArrayMut,
Set,
SetMut,
Func,
Proc,
MaybeBigInt,
MaybeBigNat,
MaybeBigFloat,
MaybeBigStr,
Other,
Illegal,
}
Expand description
Opcode used when Erg implements its own processor バイトコード命令で、in-place型付けをするオブジェクト MaybeBigがついている場合、固定長でない可能性あり(実行時検査が必要)
Variants§
Int32
Nat64
Float64
Bool
Str
StrMut
Array
ArrayMut
Set
SetMut
Func
Proc
MaybeBigInt
MaybeBigNat
MaybeBigFloat
MaybeBigStr
Other
Illegal
Trait Implementations§
source§impl PartialEq<TypeCode> for TypeCode
impl PartialEq<TypeCode> for TypeCode
impl Copy for TypeCode
impl Eq for TypeCode
impl StructuralEq for TypeCode
impl StructuralPartialEq for TypeCode
Auto Trait Implementations§
impl RefUnwindSafe for TypeCode
impl Send for TypeCode
impl Sync for TypeCode
impl Unpin for TypeCode
impl UnwindSafe for TypeCode
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