Enum bytecode_interpreter::concrete::ty::BaseType
source · pub enum BaseType {
Primitive(PrimitiveType),
Vector(Box<BaseType>),
Struct(StructInstantiation),
}
Variants§
Implementations§
source§impl BaseType
impl BaseType
pub fn mk_bool() -> Self
pub fn mk_u8() -> Self
pub fn mk_u64() -> Self
pub fn mk_u128() -> Self
pub fn mk_num() -> Self
pub fn mk_address() -> Self
pub fn mk_signer() -> Self
pub fn mk_vector(elem: BaseType) -> Self
pub fn mk_struct(inst: StructInstantiation) -> Self
pub fn into_ref_type(self, is_mut: bool) -> Type
pub fn is_bool(&self) -> bool
pub fn is_u8(&self) -> bool
pub fn is_u64(&self) -> bool
pub fn is_u128(&self) -> bool
pub fn is_num(&self) -> bool
pub fn is_int(&self) -> bool
pub fn is_address(&self) -> bool
pub fn is_signer(&self) -> bool
pub fn is_vector(&self) -> bool
pub fn is_struct(&self) -> bool
pub fn get_vector_elem(&self) -> &BaseType
pub fn get_struct_inst(&self) -> &StructInstantiation
pub fn into_vector_elem(self) -> BaseType
pub fn into_struct_inst(self) -> StructInstantiation
pub fn is_vector_of(&self, elem: &BaseType) -> bool
pub fn is_struct_of(&self, inst: &StructInstantiation) -> bool
pub fn is_compatible_for_assign(&self, other: &BaseType) -> bool
pub fn is_compatible_for_equality(&self, other: &BaseType) -> bool
pub fn is_compatible_for_arithmetic(&self, lhs: &BaseType, rhs: &BaseType) -> bool
pub fn is_compatible_for_bitwise(&self, lhs: &BaseType, rhs: &BaseType) -> bool
pub fn is_compatible_for_comparison(&self, other: &BaseType) -> bool
pub fn is_compatible_for_bitshift(&self, other: &BaseType) -> bool
pub fn is_compatible_for_constant(&self, value: &Constant) -> bool
pub fn to_move_type_tag(&self) -> TypeTag
pub fn to_move_type_layout(&self) -> MoveTypeLayout
Trait Implementations§
source§impl Ord for BaseType
impl Ord for BaseType
source§impl PartialEq<BaseType> for BaseType
impl PartialEq<BaseType> for BaseType
source§impl PartialOrd<BaseType> for BaseType
impl PartialOrd<BaseType> for BaseType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for BaseType
impl StructuralEq for BaseType
impl StructuralPartialEq for BaseType
Auto Trait Implementations§
impl RefUnwindSafe for BaseType
impl Send for BaseType
impl Sync for BaseType
impl Unpin for BaseType
impl UnwindSafe for BaseType
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.